Results 1 to 14 of 14

Change to asynchronous tracking

This is a discussion on Change to asynchronous tracking within the General Discussion forums, part of the vBSEO Google/Yahoo Sitemap category; Hi, We're still using vBSEO 3.3.2 since we're not consider vBulletin 4.0 stable enough(do you agree?). But we still want ...

  1. #1
    Junior Member
    Real Name
    J S
    Join Date
    Jan 2008
    Posts
    13
    Liked
    0 times

    Change to asynchronous tracking

    Hi,
    We're still using vBSEO 3.3.2 since we're not consider vBulletin 4.0 stable enough(do you agree?).

    But we still want to change to the new Google Analytics asynchronous tracking code. Could that be done, and if, HOW is it done?

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    This is available in vbseo 3.5.

  3. #3
    Junior Member
    Real Name
    J S
    Join Date
    Jan 2008
    Posts
    13
    Liked
    0 times
    I know that. But, as I wrote below, vBulletin 4.0 is still not stable and vBSEO 3.5 is still in BETA, no?

    IF vBSEO 3.5 is stable enough even though it's still BETA, will that version work with vBulletin 3.8.2?

  4. #4
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Yes, you can install rc3 on vb 3.x. If you don't want to run the RC software, you will have to make manual code edits to the code on the older versions of vbseo and that is not officially supported.

  5. #5
    Junior Member
    Real Name
    GEORGE
    Join Date
    May 2008
    Location
    Brisbane, Australia
    Posts
    24
    Liked
    1 times
    ah glad i found this thread i wanted to use the new tracking method for vBSEO 3.3.2

  6. #6
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    3.3.2 will not be updated to include this.

  7. #7
    Senior Member woostar's Avatar
    Real Name
    woostar
    Join Date
    Apr 2007
    Posts
    788
    Liked
    5 times
    Is it possible to post the file and code edits for those with 3.3.2? Please
    2011 Average: 1 post every 5 seconds... 24/7

  8. #8
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    The entire methodoloy and hook locations has changed.... it's not just one block to change. Perhaps a developer can share the details later, but i do not know all the steps involved.

  9. #9
    vBSEO Staff Juan Muriente's Avatar
    Real Name
    Juan Carlos Muriente
    Join Date
    Jun 2005
    Location
    Puerto Rico
    Posts
    14,266
    Liked
    586 times
    I'm bringing this thread to Oleg's attention so that he can supply the required edits as requested.

  10. #10
    Senior Member woostar's Avatar
    Real Name
    woostar
    Join Date
    Apr 2007
    Posts
    788
    Liked
    5 times
    Thank you
    2011 Average: 1 post every 5 seconds... 24/7

  11. #11
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Hello,

    the following related changes were made in functions_vbseo.php file:
    find:
    Code:
    $track_url = $more_tracking = $more_tracking2 = '';
    add below:
    Code:
    $more_tracking = array();
    find:
    Code:
    $more_tracking .= "\n".'pageTracker._setVar("'.(($bbuserinfo['userid']>0) ? 'member' : 'guest').'");';
    replace with:
    Code:
    	    	        $more_tracking[] = "['_setVar', '".((vbseo_vb_userid()>0) ? 'member' : 'guest')."']";
    find:
    Code:
    $more_tracking .= "\n".'pageTracker._setVar("usergroup-'.$bbuserinfo['usergroupid'].'-'.htmlspecialchars($grouptitle).'");';
    replace with:
    Code:
    	    	        $more_tracking[] = "['_setVar', 'usergroup-".($bbuserinfo['usergroupid'].'-'.htmlspecialchars($grouptitle))."']";

    find:
    Code:
    $more_tracking2 .= "\n".'pageTracker._trackPageview("'.VBSEO_ANALYTICS_GOAL_PATH.$vbseo_goal_pages[$vbseo_goal].'");';
    replace with:
    Code:
    	    	        $more_tracking[] = "['_trackPageview', '".VBSEO_ANALYTICS_GOAL_PATH.$vbseo_goal_pages[$vbseo_goal]."']";

    find:
    Code:
    $more_tracking2 .= "\n".'pageTracker._trackPageview("/virtual/'.($novbseo?'off':'on').'/f'.$forumid.'/'.VBSEO_REQURL.'");';
    replace with:
    Code:
    	    	        $more_tracking[] = "['_trackPageview', '/virtual/".($novbseo?'off':'on').'/f'.$forumid.'/'.VBSEO_REQURL."']";

    find:
    Code:
    vbseo_insert_code('
    <script type="text/javascript"><!--
    ....
    </script>', 'body_end');
    replace with:
    Code:
    			array_push($more_tracking, "['_trackPageview'" . ($track_url ? ",'track_url'" : "") ."]");
    			array_unshift($more_tracking, "['_setAccount', '".addslashes(VBSEO_ANALYTICS_CODE)."']");
    		    if ($vboptions['cookiedomain'])
    		    {
    		    	array_unshift($more_tracking, "['_setDomainName', '".addslashes($vboptions['cookiedomain'])."']");
    		    }
    
    	        vbseo_insert_code("
    <script type=\"text/javascript\"><!--
      var _gaq = _gaq || [];
      _gaq.push(
      " . implode(",\n", $more_tracking) ."
      );
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        document.documentElement.firstChild.appendChild(ga);
      })();
    //-->
    </script>", 'body_top');

  12. #12
    Senior Member woostar's Avatar
    Real Name
    woostar
    Join Date
    Apr 2007
    Posts
    788
    Liked
    5 times
    Thank you, will do this now
    2011 Average: 1 post every 5 seconds... 24/7

  13. #13
    Junior Member
    Real Name
    GEORGE
    Join Date
    May 2008
    Location
    Brisbane, Australia
    Posts
    24
    Liked
    1 times
    woostar so these edits worked ?

    edit: just tried it on vb 3.8.5 + vbseo 3.3.2 and google code disappears from pages when viewed via source

  14. #14
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Upgrading to 3.5.2 + will have this code by default.

Similar Threads

  1. Change domain and change URL Rewrite Settings
    By FIM in forum Troubleshooting
    Replies: 8
    Last Post: 05-08-2009, 04:59 PM
  2. Tracking DefendingTheTruth.com
    By RidinHighSpeeds in forum Analysis: Traffic & SERPS
    Replies: 21
    Last Post: 05-18-2007, 09:02 AM
  3. Tracking SOfantasyfootball.com
    By Mike in forum Analysis: Traffic & SERPS
    Replies: 11
    Last Post: 01-04-2007, 08:53 AM
  4. Tracking the dub
    By AndyS in forum Analysis: Traffic & SERPS
    Replies: 1
    Last Post: 10-31-2006, 11:22 AM

Tags for this Thread

Posting Permissions

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