Results 1 to 6 of 6

Two Google Analytics urchinTrackers with Google Analytics Funnel for Registrations

This is a discussion on Two Google Analytics urchinTrackers with Google Analytics Funnel for Registrations within the Troubleshooting forums, part of the vBSEO SEO Plugin category; I'm trying to troubleshoot a problem; vBSEO is generating two urchinTracker calls to Google Analytics when Google Analytics Funnel for ...

  1. #1
    Member Array
    Real Name
    Eric Chamberlain
    Join Date
    Sep 2006
    Posts
    36
    Liked
    0 times

    Question Two Google Analytics urchinTrackers with Google Analytics Funnel for Registrations

    I'm trying to troubleshoot a problem; vBSEO is generating two urchinTracker calls to Google Analytics when Google Analytics Funnel for Member Registrations is active.

    The page source code looks like this:

    HTML Code:
    <script type="text/javascript">
    _uacct = "UA-668170-5";
    _udn="voxilla.com";
    urchinTracker();
    </script>
    <script type="text/javascript">
    _udn="voxilla.com";
    urchinTracker("/google-funnel/regform-show.html")
    </script>
    I've searched through my templates to make sure urchinTracker() wasn't manually coded. It's not in the templates, so the only place I can think of where it comes from is vBSEO.

    I did make the following changes to vBSEO Global Hook, but the change shouldn't make urchinTracker appear twice.

    PHP Code:
    if(@include_once(($GLOBALS['vbpath']?$GLOBALS['vbpath'].'/includes':dirname(__FILE__)).'/functions_vbseo.php'))
        
    $output make_crawlable($output);
    // added to support subdomain with Google Analytics - Eric Chamberlain
    $output str_replace(
    'urchinTracker(',
    '_udn="voxilla.com";
    urchinTracker('
    ,
    $output); 
    Any suggestions on how to fix it so urchinTracker is only called once with the funnel information?

  2. #2
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    The first call is added by "Include Analytics tracking code" function for the stats, while the second one is added by another part of code which only tracks "virtual" URL for goal matching. If you want to track only virtual URL in this case, you can modify the hook code with something like:

    PHP Code:
    $output str_replace(
    'urchinTracker();
    </script> <script type="text/javascript">
    urchinTracker('
    ,
    'urchinTracker(',
    $output);  
    // added to support subdomain with Google Analytics - Eric Chamberlain
    $output str_replace(
    'urchinTracker(',
    '_udn="voxilla.com";
    urchinTracker('
    ,
    $output); 
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Member Array
    Real Name
    Eric Chamberlain
    Join Date
    Sep 2006
    Posts
    36
    Liked
    0 times
    That works, thanks.

  4. #4
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    You are welcome!
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  5. #5
    Junior Member Array
    Real Name
    Jeremy Luebke
    Join Date
    Jan 2007
    Posts
    23
    Liked
    0 times
    I am also running the forum on a subdomain and need to add '_udn="domain.com"; to the urchin code while using goal tracking. What file is this edit being made?

    Code:
    $output = str_replace(
    'urchinTracker();
    </script> <script type="text/javascript">
    urchinTracker(',
    'urchinTracker(',
    $output);  
    // added to support subdomain with Google Analytics - Eric Chamberlain
    $output = str_replace(
    'urchinTracker(',
    '_udn="domain.com";
    urchinTracker(',
    $output);  

  6. #6
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    It's in vB admincp->plugins->vBSEO Global Hook.
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Similar Threads

  1. Google Analytics Funnel problems
    By lafsunlmtd in forum General Discussion
    Replies: 8
    Last Post: 06-21-2006, 01:49 PM
  2. Replies: 3
    Last Post: 06-13-2006, 09:59 AM
  3. Google is All About Search: 4 New Products
    By Joe Ward in forum General Discussion
    Replies: 0
    Last Post: 05-16-2006, 01:52 PM
  4. Google Analytics - New Free Tool!
    By skizzy203 in forum Analysis: Traffic & SERPS
    Replies: 29
    Last Post: 11-22-2005, 06:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •