Multiple sites with the same counter

If multiple sites have the same main domain, you can decide to record visits to all these sites using the same counter. The main domain of a site is the domain name without sub-domain and without subfolders. Sites can only share the same counter if they are in the same environment and if they have the same main domain.

Example:

www.afas.nl, be.afas.nl en afas.nl/nl all have afas.nl as the main domain.

If you use the same Google Analytics ID in the properties of the various sites in Profit, the sites can share the same counter.

Sites in subdomains

If sites in sub-domains have the same main domain (nl.afas.com, be.afas.com and afas.com), add the code in the counter code of both sites:

_gaq.push(['_setDomainName', '.afas.com']);

The lowest subdomain is retrieved from the domain, thus a subsubdomain becomes a subdomain.

Sites in subfolders

If sites in subfolders are in the same domain (Afas.com/nl and afas.com/be), add this code in the counter code of both sites:

_gaq.push(['_setCookiePath', '/nl/']);

This code is inserted in the variables code, after the track preview:

_gaq.push(['_cookiePathCopy', '/ ']);

Everything is copied to the domain, without subfolders.