The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Online Marketing Tools
    4. Moving domain - Google Analytics tracking code

    Moving domain - Google Analytics tracking code

    Online Marketing Tools
    3 2 306
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Richard555
      Richard555 last edited by

      Hello

      My company's website is moving domain, all pages are staying the same.

      So www.abc.com/winter will become www.xyz.com/winter

      Should I:

      A) Use the same Google analytics tracking code to the new website?

      For example UA-1234567-1

      OR

      B) Set up new tracking code so it would look something like this: UA-1234567-2

      If I did A) then in Analytics reports I'll see both the before and after domain move.

      Many thanks in advance!

      Nigel

      1 Reply Last reply Reply Quote 0
      • artaviaseo
        artaviaseo last edited by

        Too keep the most consistency in your traffic data it might be favourable to keep the same code and just update the domain to the new one in the Google Analytic settings. You could still separate the data by using date ranges.

        1 Reply Last reply Reply Quote 1
        • Richard555
          Richard555 last edited by

          Hi Artaviaseo, many thanks for the quick reply. That is great!

          Have a good weekend

          Nigel

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Google Analytics - Track Landing Page Redirects
            LoganRay
            LoganRay
            1
            2
            1.1k

          • URL changes in Google Analytics and Google Search Tools
            whitewallmarketing
            whitewallmarketing
            0
            4
            109

          • Marketo Landing pages and tracking in Google Analytics
            john4math
            john4math
            0
            7
            6.8k

          • When I can place the Google Analytics javascript code in my web pages?
            S_Curtis
            S_Curtis
            0
            3
            164

          • What are the best tools to test whether google analytics tracking code is tracking well?
            kchandler
            kchandler
            0
            4
            219

          • Google analytics tracking code is wrong?
            Aleyda
            Aleyda
            1
            4
            776

          • How to retrieve the Not Set Keywords especially the google adwords data in Google Analytics?
            AndersS
            AndersS
            0
            4
            2.3k

          • Should I move booking engine to sub domain or keep it on its own domain?
            Equatorites
            Equatorites
            0
            3
            629

          Get started with Moz Pro!

          Unlock the power of advanced SEO tools and data-driven insights.

          Start my free trial
          Products
          • Moz Pro
          • Moz Local
          • Moz API
          • Moz Data
          • STAT
          • Product Updates
          Moz Solutions
          • SMB Solutions
          • Agency Solutions
          • Enterprise Solutions
          • Digital Marketers
          Free SEO Tools
          • Domain Authority Checker
          • Link Explorer
          • Keyword Explorer
          • Competitive Research
          • Brand Authority Checker
          • Local Citation Checker
          • MozBar Extension
          • MozCast
          Resources
          • Blog
          • SEO Learning Center
          • Help Hub
          • Beginner's Guide to SEO
          • How-to Guides
          • Moz Academy
          • API Docs
          About Moz
          • About
          • Team
          • Careers
          • Contact
          Why Moz
          • Case Studies
          • Testimonials
          Get Involved
          • Become an Affiliate
          • MozCon
          • Webinars
          • Practical Marketer Series
          • MozPod
          Connect with us

          Contact the Help team

          Join our newsletter
          Moz logo
          © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
          • Accessibility
          • Terms of Use
          • Privacy