Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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?

Thanks.

share|improve this question
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.