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. When I can place the Google Analytics javascript code in my web pages?

    When I can place the Google Analytics javascript code in my web pages?

    Online Marketing Tools
    3 3 164
    • 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.
    • esiow2013
      esiow2013 last edited by

      My site is still under development and can be access only through a local host, not in the domain yet. When I should add the code from Google Analytics to my website? after or before launch?

      Thanks in advance!

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

        There's no harm at all in doing it before launch, so I would do it now.  That way, when you do go live, you're capturing 100% of the data without any delay.  If you create any new subsequent pages you can then also add as you go, rather than piling on the work.

        Hope this helps!

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

          Yes good idea to add code before going live.  Worth creating two views (profiles) one where you filter out the local hostname (domain) traffic and the other where you only include the live hostname traffic. This means you won't mistake testing traffic for real traffic.  Let me know if you need any other help on doing that.

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          • Data Panel Within Google In Page Analytics
            0
            1
            171

          • Google Analytics - Track Landing Page Redirects
            LoganRay
            LoganRay
            1
            2
            1.1k

          • Google Analytics goal - Multiple page destinations
            LoganRay
            LoganRay
            0
            5
            4.8k

          • How can I create a funnel report in Google Analytics if I don't have a /thank-you or conversion page?
            Martijn_Scheijbeler
            Martijn_Scheijbeler
            0
            8
            220

          • Is this Google Analytics tracking code the same?
            Hutch42
            Hutch42
            0
            4
            100

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

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

          • Google Places to Google+ Local - help!
            MiriamEllis
            MiriamEllis
            0
            4
            467

          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