We love digital

Call 0845 485 1219

We love digital - Call and say hello - Mon - Fri, 9am - 5pm

How to Change Website Domain in Google Analytics

Anna Lewis

by Anna Lewis on 17th May 2011

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.

 

Update Domain URL in Google Analytics


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.

Update Google Analytics Profile Names


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.

 

Change the Google Analytics Account Name


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.

Anna Lewis

Anna Lewis

Our resident analytics specialist is Anna Lewis. Anna is unbelievably attuned to anything analytical and can fill you in on all the latest news, tips and advice to get ahead in this evolving market.

down arrow

Your Free Whitepaper

The Practical Guide To Google Analytics For Businesses (2nd Edition)

The Practical Guide To Google Analytics For Businesses (2nd Edition)

Download this whitepaper now and get a new one every month!

11 Comments

  • Joe 16th May 2012

    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.

    Reply to this comment

  • Mike Essex

    Mike Essex 17th May 2012

    Thanks Joe, we are looking in to the image issue on this post and thanks for the feedback on subdomains.

    Reply to this comment

  • Asli 28th July 2012

    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.

    Reply to this comment

  • Ned Wells 9th August 2012

    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!
    Ned

    Reply to this comment

  • Martin 27th November 2012

    Hi Anna,

    im trying to change the domain http://transalex.de to http://www.transalex.de in google analytics but don´t find the properly option. Do you have a solution. Many thanks

    Martin

    Reply to this comment

  • Zenah 18th January 2013

    How do I change my physical address with Google Analytics?

    Reply to this comment

  • nyenius 21st February 2013

    Thankyou very much, this simple article helps me a lot! ^_^

    Reply to this comment

  • Yengkhom 31st July 2013

    Hi Anna,

    I transferred my previous blogspot domain to a new .com domain and I was worried about keeping my previous analytics records. As per your post, you suggest to keep the same code but when I log in to my google analytics page it shows my previous blogspot name. How do I change that name to my new domain? Are there any steps? Or do I just keep it as it was and will it not cause any problems in future? plz help

    Regards,
    Yengkhom

    Reply to this comment

  • alberto 23rd October 2013

    Why is your number changing from 08454851219 to 08454851271?

    Reply to this comment

    • Mike Essex

      Mike Essex 23rd October 2013

      Hi Alberto, our number changes based on how people arrive on the site so we can better track how people found us when they call.

      Reply to this comment

Subscribe To The Koozai Blog