Hi Sorry I am very new to this so could do with any advice.Have a number of dev/test environments all with the url .xxx.govwhen I release to prod the url will become .gov.uk on the external internet tier and .xxx.gov on the internal intranet tier.I have the Ga code on my site : _gaq.push(['_setDomainName', 'xxx.gov']);I am concerned that this will not work on the external tier for .gov.ukNow I obviously want the exact same code running in all environments. Can anyone advise me on this please.
From what I can tell you deal here with GA tracking across subdomains. You need to do this a bit differently. Take a look at the link below for more help on this https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSite