Here’s a quick and easy guide to help you manage a domain change in Google Analytics. Most people will be able to set up Google Analytics. But do you actually know what to do if you wanted to change domain and keep your Google Analytics history? Luckily it’s nice and simple!
I’m going to imagine that your new domain is just going live and you’re redirecting your old domain to the new one, so that there is only one version of the site live at a time. This new domain should have exactly the same Google Analytics code as you had on your previous site. If you need any amendments to customise it for any reason then that is fine, as long as you have the same UA number.
As the code is still there the results will still be coming in, so if you’re really lazy you don’t have to do any more! However, it would obviously be beneficial to ensure everything ties in and is named accurately so that everyone can understand. So you will need to update the associated website URLs, Account and Profile settings.
From your Account Overview page click Edit alongside the profile on the right hand side – this needs to be done for all profiles, bad luck if you have lots! From the Profile Settings page click Edit in the top right. Here you can change the website URL to your new one.
Profile names in Google Analytics can be changed in the Profile Settings area as above. From your overview page click Edit alongside the profile details, then click Edit in the top right again. Try to give your Profiles useful names that help other people understand what data is available here.
One useful thing I like to do with Profile names is put an asterisk in front of the most important ones that are used most often. This puts them at the top of the list and makes navigation quicker.
If you need to update the name of the Google Analytics account as well, you need to navigate to your Account Settings / Overview. This is easy to find if you’re not already on it – it’s linked to through ‘Analytics Settings’ in the top left-hand corner when you’re anywhere within the account. Once you’ve gone in to this section just click the (Edit Account Settings) link and re name the Account as required.
Once you have changed domain it would be a good idea to check if Google Analytics is working, paying particular attention to the Hostnames report in case any other URLs are actively hosting your content, such as your staging site or old domain.
Changing the names and URLs in your account settings will not affect your data in any way, as Google reports on the URI (Uniform Resource Identifier, the bit after the domain name) rather than the URL in the Google Analytics Reports. For more tips on Google Analytics check out our other Google Analytics blog posts or our Google Analytics consulting.
thank you,,,nice arcticle
I’m about to cry of happiness because I’m about to move all my content to a new domain and wasn’t sure how to handle Google Analytics. YOU DA BEST.
Why is your number changing from 08454851219 to 08454851271?
Thankyou very much, this simple article helps me a lot! ^_^
im trying to change the domain https://transalex.de to https://www.transalex.de in google analytics but don´t find the properly option. Do you have a solution. Many thanks
I’ve just written a follow up article to this, which should contain the information you need. Please check out this link: https://www.cicada-online.com/blog/2012/11/how-to-change-website-domain-in-google-analytics/
Hi Anna, this is a really helpful article.
I have a slightly different situation I’m dealing with, and would really appreciate your insight before I make any changes, if that’s OK.
Basically my client’s GA account is set up for the http version of the site. But the http version redirects to the www version of the site. This means that things like In-Page Analytics don’t work properly.
I want to change the URLs in the account settings to the www version of the site. Can I safely assume that if I do this, I won’t lose historical data?
Thanks in advance for any light you can shed on this!
I bought a domain name via my blogger account and my blog is still in transition. I have updated the URL in my account settings, but my google analytics data is not normal. Blogger stats are fine, according to blogger stats I haven’t lost any traffic (600 pageviews a day), but analytics stats show only few (7 pageviews) and my bouncerate is incredibly and unusally high. Is this normal, how long will it take for analytics to show more accurate results? I would appreciate your help.
All of your screen shots are broken.
Also, you need to make sure that you change the subdomain in your GATC if you are explicity calling _setDomainName.
Sign up now and get our free monthly email. It’s filled with our favourite pieces of the news from the industry, SEO, PPC, Social Media and more. And, don’t forget - it’s free, so why haven’t you signed up already?