homepage Welcome to WebmasterWorld Guest from 54.237.99.131
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
Forum Library, Charter, Moderators: Receptional & mademetop

Website Analytics - Tracking and Logging Forum

    
Updated cross/sub domain tracking codes in GA
_setAllowHash() method has been deprecated
zefroth



 
Msg#: 4361022 posted 1:32 am on Sep 11, 2011 (gmt 0)

Google seems to have finally updated its documentation for sub-domain & cross-domain tracking. [code.google.com ]

The _setAllowHash() object method has been deprecated [code.google.com ].This method reduces the domain hash value to an arbitrary number (usually ‘1’) so that cookies from other tracked domains do not get rejected. It was never required for sub-domain tracking to work; but Google’s earlier documentation had, quite redundantly, included this.

Another change is that the leading period in the _setDomainName() method has been removed i.e. the preferred method to define the domain name is

_gaq.push(['_setDomainName', 'example-petstore.com']);

& NOT

_gaq.push(['_setDomainName', '.example-petstore.com']);

Not sure why this change has been brought into the picture.

In any case, I don't think it would be wise to go ahead & change the current tracking codes according to the newly introduced revisions in the documentation. It could screw up the returning visitors metric.

 

Ducki

5+ Year Member



 
Msg#: 4361022 posted 6:35 am on Oct 12, 2011 (gmt 0)

Hmmm, on this page:
[code.google.com ]

Under the section entitled:
Tracking Across a Domain and Its Subdomains

I still see the following example using the period before the domain name such as:
_gaq.push(['_setDomainName', '.example-petstore.com']);

So it appears it's still used in some instances.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved