Cross-domain tracking with Google Analytics?

For cross subdomain traffic, you do not need to set setAllowLinker though there's no harm. What that function does is enable the ability to transfer your Google Analytics cookies for cross domain tracking. That functionality, enabled by the function link is not necessary for your use case.

For cross subdomain traffic, you do not need to set _setAllowLinker, though there's no harm. What that function does is enable the ability to transfer your Google Analytics cookies for cross domain tracking. That functionality, enabled by the function _link, is not necessary for your use case.

If you set your setDomainName to none like that, what it does is it sets the domain hash to 1 and sets the domain of the cookies to the current domain. This does not help you for cross subdomain tracking, as traffic between subdomains will be treated as referrals. If you don't have third level subdomains to track (like foo.bar.example.Com), all you need to do is set your domain name to the root of your domain like so: _gaq.

Push('_setDomainName', 'mysite. Com'); // used on any mysite.Com domain or subdomain If you think you'll need 3rd level subdomain tracking, you should put a leading period in front of mysite. Com, like so: _gaq.

Push('_setDomainName', '. Mysite.Com'); // used on any mysite. Com domain or subdomain as well as third level subdomains What you're doing here is two things.

One, you're declaring what domain the cookies should be set at (in this case, the above 2 domains are identical) and you're configuring what domain will be used to create your "domain hash", which is the first period delimited value in the Google Analytics cookie. Google Analytics uses the "domain hash" to prevent cookie conflicts; if the domain hash of the value you've configured in setDomainName isn't consistent with the one at the start of the cookies that ga. Js detects, it'll create a new set of cookies and create an entirely new visit (which, in your case, is not what you want.

).

Ah... so I just need _gaq. Push('_setDomainName', 'mysite. Com'); to track the three sub-domains and there's no need for the _gaq.

Push('_link'... on anchors? – diggersworld Dec 9 at 15:18 Correct. As long as you're not tracking across separate root domains.Ie, _link becomes necessary if you have mysite.

Com and my-shoppingcart-site.com. Basically, you should be following Tracking Across a Domain and Its Subdomains – yahelc Dec 9 at 15:23 Looking at the linked to example does that mean I need '. Mysite.Com'?

– diggersworld Dec 9 at 15:42 You could do either .mysite. Com or mysite.com. If you're already using the (none) approach, then the only advantage for excluding the period doesn't exist (its compatible with the default for your main domain), so, you might as well just do .

Mysite.com. – yahelc Dec 9 at 15:44 Cool thanks for the info. – diggersworld Dec 9 at 15:49.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions