Results 1 to 5 of 5

Can't Achieve Cookieless Sub-domain

This is a discussion on Can't Achieve Cookieless Sub-domain within the Bug Reporting forums, part of the vBSEO SEO Plugin category; When using vBSEO integrated with Google Analytics, the utma cookies are attributed to .domain.com regardless of $vbulletin->options[cookiedomain]. If I have ...

  1. #1
    Member
    Real Name
    Ted
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    50
    Liked
    0 times

    Can't Achieve Cookieless Sub-domain

    When using vBSEO integrated with Google Analytics, the utma cookies are attributed to .domain.com regardless of $vbulletin->options[cookiedomain]. If I have set www.domain.com, that's where I want the cookies. The current implementation means that serving static content from a sub-domain cannot achieve Google's recommendation of using cookie-less domains for static content (which means an additional 1.4KiB is sent/received for each static request).

    This can be avoided by simply setting the cookie domain in the GA implementation:
    Code:
    pageTracker._setDomainName('{$vbulletin->options['cookiedomain']}');
    - the makers of VaultWiki

  2. #2
    Member
    Real Name
    Ted
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    50
    Liked
    0 times
    This still persists in RC2 Final. Really hope this is fixed before gold.
    - the makers of VaultWiki

  3. #3
    Member
    Real Name
    Ted
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    50
    Liked
    0 times
    Here's the code I used to fix the problem. In vbseo/includes/functions_vbseo.php, find:
    Code:
    array_unshift($more_tracking, "['_setAccount', '".VBSEO_ANALYTICS_CODE."']");
    Add after:
    Code:
    if ($vboptions['cookiedomain'])
    {
    $cookiedomain = str_replace("'", "\'", $vboptions['cookiedomain']);
    array_unshift($more_tracking, "['_setDomainName', '$cookiedomain']");
    }
    - the makers of VaultWiki

  4. #4
    Member
    Real Name
    Ted
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    50
    Liked
    0 times
    Thought I'd mention that this STILL persists in RC 3. The fix is posted above, not sure why this is taking so long to be acknowledged by staff.
    - the makers of VaultWiki

  5. #5
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Thank you for update, we will add cookie domain in vBSEO3.5.0 final.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Similar Threads

  1. Replies: 4
    Last Post: 11-04-2009, 07:07 PM
  2. How can I achieve this?
    By Danny1878 in forum General Discussion
    Replies: 2
    Last Post: 09-04-2008, 03:04 PM
  3. how would I achieve this
    By emin in forum General Discussion
    Replies: 8
    Last Post: 11-19-2005, 06:43 PM

Posting Permissions

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