Skip to content
    Moz logo Menu open Menu close
    • Products
      • Moz Pro
      • Moz Pro Home
      • Moz Local
      • Moz Local Home
      • STAT
      • Moz API
      • Compare SEO Products
      • Moz Data
    • Free SEO Tools
      • Domain Analysis
      • Keyword Explorer
      • Link Explorer
      • Competitive Research
      • MozBar
      • More Free SEO Tools
    • Learn SEO
      • Beginner's Guide to SEO
      • SEO Learning Center
      • Moz Academy
      • SEO Q&A
      • Webinars, Whitepapers, & Guides
    • Blog
    • Why Moz
      • Agency Solutions
      • Enterprise Solutions
      • Small Business Solutions
      • Case Studies
      • The Moz Story
      • New Releases
    • Log in
    • Log out
    • Products
      • Moz Pro

        Your all-in-one suite of SEO essentials.

      • Moz Local

        Raise your local SEO visibility with complete local SEO management.

      • STAT

        SERP tracking and analytics for enterprise SEO experts.

      • Moz API

        Power your SEO with our index of over 44 trillion links.

      • Compare SEO Products

        See which Moz SEO solution best meets your business needs.

      • Moz Data

        Power your SEO strategy & AI models with custom data solutions.

      Discover Brand Authority
      Moz Pro

      Discover Brand Authority

      Learn More
    • Free SEO Tools
      • Domain Analysis

        Get top competitive SEO metrics like DA, top pages and more.

      • Keyword Explorer

        Find traffic-driving keywords with our 1.25 billion+ keyword index.

      • Link Explorer

        Explore over 40 trillion links for powerful backlink data.

      • Competitive Research

        Uncover valuable insights on your organic search competitors.

      • MozBar

        See top SEO metrics for free as you browse the web.

      • More Free SEO Tools

        Explore all the free SEO tools Moz has to offer.

      What is your Brand Authority?
      Moz

      What is your Brand Authority?

      Take the quiz
    • Learn SEO
      • Beginner's Guide to SEO

        The #1 most popular introduction to SEO, trusted by millions.

      • SEO Learning Center

        Broaden your knowledge with SEO resources for all skill levels.

      • On-Demand Webinars

        Learn modern SEO best practices from industry experts.

      • How-To Guides

        Step-by-step guides to search success from the authority on SEO.

      • Moz Academy

        Upskill and get certified with on-demand courses & certifications.

      • SEO Q&A

        Insights & discussions from an SEO community of 500,000+.

      June 3 & 4, 2024, Seattle
      MozCon

      June 3 & 4, 2024, Seattle

      Get tickets
    • Blog
    • Why Moz
      • Small Business Solutions

        Uncover insights to make smarter marketing decisions in less time.

      • Agency Solutions

        Earn & keep valuable clients with unparalleled data & insights.

      • Enterprise Solutions

        Gain a competitive edge in the ever-changing world of search.

      • The Moz Story

        Moz was the first & remains the most trusted SEO company.

      • Case Studies

        Explore how Moz drives ROI with a proven track record of success.

      • New Releases

        Get the scoop on the latest and greatest from Moz.

      Surface actionable competitive intel
      New Feature: Moz Pro

      Surface actionable competitive intel

      Learn More
    • Log in
      • Moz Pro
      • Moz Local
      • Moz Local Dashboard
      • Moz API
      • Moz API Dashboard
      • Moz Academy
    • Avatar
      • Moz Home
      • Notifications
      • Account & Billing
      • Manage Users
      • Community Profile
      • My Q&A
      • My Videos
      • Log Out

    The Moz Q&A Forum

    • Forum
    • Questions
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

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

    1. Home
    2. SEO Tactics
    3. Reporting & Analytics
    4. Huge Analytics discrepancy when I turned off Analytics Module & Turned on GA via GTM

    Huge Analytics discrepancy when I turned off Analytics Module & Turned on GA via GTM

    Reporting & Analytics
    3
    12
    1863
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with question management privileges can see it.
    • JJLWeber
      JJLWeber last edited by

      Hello,

      I was running universal GA via a GA Drupal module. We setup Google Tag Manager and setup a GA tag to run through GTM. When we pushed the GTM container live our Real Time was at around 1900 and when we turned off the Drupal module the Real Time was reporting around 1100.

      After 24 hours the sessions for that day were about 100k lower than what they usually are.

      Any ideas Why the larger discrepancy? Any places that are obvious to look?

      *I didn't setup the original Drupal GA module, nor do I know who did.

      Thanks

      1 Reply Last reply Reply Quote 0
      • JJLWeber
        JJLWeber @DirkC last edited by

        Thanks, Dirk. I had the devs move the data layer above the GTM container snippet. The GA tag is still not firing on pages with a data layer and firing on pages without a data layer.

        Obviously, it looks like there is an issue with the data layer -- I can't figure out what it is. I took a screen grab of the data layer in the source code.

        4mliOJP

        1 Reply Last reply Reply Quote 0
        • DirkC
          DirkC @JJLWeber last edited by

          Can only give you a theoretical answer - don't have that much experience with debugging the tag manager. From the "manual":

          Data layer needs to be above the container snippet
          Datalayer should be added above the container snippet. Variables pushed to the data layer after the container snippet will not be able to fire tags on page loads with a matching condition.
          Variables pushed to the data layer after the container snippet will not be able to fire tags on page loads with a matching condition.
          Move the datalayer to above the container snippet

          Check also https://www.optimizesmart.com/google-tag-manager-data-layer-explained-like-never/ - it seems that you define your data layer after the position of the tag - so the tag cannot send the info from the data layer to Analytics. Check your source code & check where the data layer is defined. Probably it's ok on your category pages but not on the detail pages (compare both types to see the difference)

          Hope this helps.

          Dirk

          JJLWeber 1 Reply Last reply Reply Quote 0
          • JJLWeber
            JJLWeber @DirkC last edited by

            Hey Dirk,

            I checked the debugger and on the pages where the tag isn't firing the console isn't even acknowledging GTM.

            The Tag Assistant is showing this error on pages where the GA tag is not firing: 'data layer needs to be above the container snippet.'  Do you think this could be the issue?

            I work with a journal site, and I notice that on landing pages the GA tag mostly fires correctly, but on article pages the tag doesn't fire and I get the 'data layer' error from tag assistant. e.x: the tag fires on /news but not on /news/some-random-article-from-today

            DirkC 1 Reply Last reply Reply Quote 0
            • DirkC
              DirkC @JJLWeber last edited by

              Apart from the Tag manager assistant - you could also check the debugger -https://chrome.google.com/webstore/detail/google-analytics-debugger/jnkmfdileelhofjcijamephohjechhna?hl=en-US  - like Martijn mentioned there should be an error somewhere - did you check the messages in the console?

              JJLWeber 1 Reply Last reply Reply Quote 0
              • JJLWeber
                JJLWeber @Martijn_Scheijbeler last edited by

                That is possible, the coding is a mess. How could I see if there were or were not JavaScript errors on the page? And if there were, how to pinpoint which are interfering with my GA tag firing?

                Thanks, Martijn!

                1 Reply Last reply Reply Quote 0
                • Martijn_Scheijbeler
                  Martijn_Scheijbeler @JJLWeber last edited by

                  Are you sure that there are no JavaScript errors on the page?

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

                    I found a subdirectory that the GA tag is not firing on though the GTM container is present.

                    When I use Debug, I get this message:

                    No tags were evaluated because there was no Event in the selected Message

                    I have no idea as to why the tag is not firing.

                    Martijn_Scheijbeler DirkC 2 Replies Last reply Reply Quote 0
                    • Martijn_Scheijbeler
                      Martijn_Scheijbeler @JJLWeber last edited by

                      Hmm yeah that seems right to me!

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

                        Thanks, Dirk. I'm going to follow your suggestions.

                        Martijn, the track type id is 'pageview' and is set to fire on 'all pages'. For my Tag Firing Options I have selected 'once per event.'

                        Does that seem to be right?

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

                          What Dirk is suggesting would be the first thing to do in my opinion as well. But the second one is what trigger are you using in Google Tag Manager. Are you targeting all pages in there or something else?

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

                            Run Screaming Frog - and check if the tag id is present on all pages. Apart from checking - you could also extract the code from the source to double check that the ID is correct; check here how you can do this

                            In Analytics reporting (Behavior > Site Content > Content Drill down) set the day after migration & compare it to the day before migration - check if there if the drop is generic (=all pages) or linked to a few sections. If the drop is higher in specific sections - go down to next level & do the same. Check the pages with the highest traffic loss using the Tag Assistant plugin for Chrome. It checks if the tag is properly implemented on these pages (https://chrome.google.com/webstore/detail/tag-assistant-by-google/kejbdjndbnbjgmefkgdddjlbokphdefk)

                            You can also use the Tag Assistant plugin on your main pages to see if it is sending data as you would expect.

                            Hope this helps.

                            Dirk

                            1 Reply Last reply Reply Quote 0
                            • 1 / 1
                            • First post
                              Last post

                            Got a burning SEO question?

                            Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                            Start my free trial


                            Browse Questions

                            Explore more categories

                            • Moz Tools

                              Chat with the community about the Moz tools.

                            • SEO Tactics

                              Discuss the SEO process with fellow marketers

                            • Community

                              Discuss industry events, jobs, and news!

                            • Digital Marketing

                              Chat about tactics outside of SEO

                            • Research & Trends

                              Dive into research and trends in the search industry.

                            • Support

                              Connect on product support and feature requests.

                            • See all categories

                            Related Questions

                            • SearchStan

                              How to add the Enhanced E-commerce plugin if you have Analytics set up through GTM?

                              I'm having confusion about where I would add the the Enhanced Ecommerce line of code: ga(‘require’, ‘ec’); if I have Analytics implemented through Google Tag Manager? I have read through several articles and still am not entirely sure.

                              Reporting & Analytics | | SearchStan
                              0
                            • madegood

                              Phantom search results showing up in analytics

                              Hi, I'm getting these weird phantom search results showing up in my analytics account which is skewing  my results. I have a wordpress site, and I do have some custom search results pages, but analytics is telling me these hits are coming from google- which I doubt. The end of the query string (&cat=plus-5-results) is not coming from a link created within my site. Anyone have any ideas? Failing that, would somebody be kind enough to explain how I can ignore these hits, but retain other, valid search result requests? Thanks reading! Will Screenshot%202019-05-16%20at%2022.32.10.jpg

                              Reporting & Analytics | | madegood
                              0
                            • Ruchy

                              Help me exclude our dynamic IP addresses from GA

                              Hi There, I can't believe we are the first SEO Web Development company with the issue of dynamic IP addresses, for technical reasons our ISP keeps changing our IP addresses to different random IP addresses (no patterns, ranges, or reasoning to the specific changes) and we obviously need to exclude our own visits to google analytics - but I can't seem to find any simple way to do this in Google Analytics - can you help me find a simple solution for this? I did find two chrome extensions(I'll give you the links to those at the end) that I will look into if you cant help me find a simpler solution 🙂 Thanks so much!! https://chrome.google.com/webstore/detail/block-yourself-from-analy/fadgflmigmogfionelcpalhohefbnehm?hl=en https://chrome.google.com/webstore/detail/developer-cookie/lknhpplgahpbindnnocglcjonpahfikn

                              Reporting & Analytics | | Ruchy
                              1
                            • EvansHunt

                              Google Analytics - Next Page Path is the Same URL?

                              Hey Everyone, I have a Google analytics question. I'm looking through a client's site and when I look at the next page path, I get the same URL as the next path. For example, on the homepage, the next page path I get is the homepage again? This happens for all URL's, is this an implementation error? Is there a way to fix this? Thanks!

                              Reporting & Analytics | | EvansHunt
                              0
                            • abhim12

                              Huge Traffic Drop?

                              I am seeing a huge 30-40% traffic drop which started around 8-9 PM EST last night. I am compare the stats of today with last Saturday and the drop is significant. I am checking it in Google Analytics and Clicky and both report the same. The Adsense impressions drop also show the same. The rankings of my top keywords seem to be fine. I re-checked them using ranktracker for Google US, UK and others. I don't understand what has happened here. Anyone else seeing the drop? Is there a Google Panda update underway?

                              Reporting & Analytics | | abhim12
                              0
                            • Joseph.Volcy

                              Advanced Segment on Google Analytics

                              Hello there, hope everyone is allright and rockin' the SEO world 🙂 Was wondering if anyone could give a tip on how to configure an 'Advanced Segment' on Google Analytics. Basically I need to isolate traffic for 4 specific subfolders. E.g. www.mywebsite.com/solutions/A www.mywebsite.com/solutions/B www.mywebsite.com/solutions/C www.mywebsite.com/solutions/D/part1 Please note that the website has more pages under the specific section. E.g www.mywebsite.com/solutions/Z www.mywebsite.com/solutions/D/part2 but  I only need to isolate the 4 directories (and their own sub-folders) mentioned above. Any idea how I could do this? Thanks a lot Joe

                              Reporting & Analytics | | Joseph.Volcy
                              0
                            • mascotmike

                              Google Analytics Alternatives

                              I am getting really fed up with how unreliable Google Analytics data is. Also, because I have several large sites I can't use the goal tracking or conversion funnel reports. What are the best alternatives to Google Analytics?

                              Reporting & Analytics | | mascotmike
                              0
                            • LBike

                              What is the best Wordpress Analytics Plugin to use?

                              I am installing a new instance of WordPress and want to use Google Analytics. Which Plug-in is the best to use? I am finding several Plug-ins that all seem to do the same thing: Google Analyticator Google Analytics Dashboard Simple Google Analytics Ultimate Google Analytics Wordpress Google Analytics Maybe one of these are not the best? Any recommendations would be appreciated. Thanks!

                              Reporting & Analytics | | LBike
                              0
                            Moz logo
                            • Contact
                            • Community
                            • Free Trial
                            • Terms & Privacy
                            • Accessibility
                            • Jobs
                            • Help
                            • News & Press
                            • MozCon
                            © 2021 - 2024 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.

                            Looks like your connection to Moz was lost, please wait while we try to reconnect.