Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Google Analytics (GA) account for an existing site. We're developing a new site on a different live server, and I believe GA is tied to the domain name, not the IP address of the website. With the GA code installed on the development site before launch, once the DNS switch is made, GA should track the new site automatically, correct?


share|improve this question
up vote 4 down vote accepted

Yes, the tag will work as you suggest.

But, if you originally set up the tag to track multiple versions of the same domain and/or multiple sub-domains, then adding the tag to the dev site may mess up your existing analytics as it will still record data.

You could park the development site on a sub-domain and track it seperately if the data is useful to you, otherwise don't add in the tag until you are in the process of going live.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.