Huge Analytics discrepancy when I turned off Analytics Module & Turned on GA via GTM
-
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
-
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.
-
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 snippetCheck 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
-
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
-
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?
-
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!
-
Are you sure that there are no JavaScript errors on the page?
-
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.
-
Hmm yeah that seems right to me!
-
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?
-
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?
-
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
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
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.
Related Questions
-
Email traffic tracking in Google Analytics
Hello! I have a question about how to assure email traffic is properly tracked in GA > Acquisition > All Traffic > Channels. **First, some background... ** Our company (Wisconsin's largest group dental practice) is about to revamp the way we try to re-capture patients who don't have a future appointment set with us. Part of that process will include emails. Those emails will point back to our website to request an appointment. Now to the question... Is there anything special we should do to assure that links coming to the website and the resulting appointment request goal conversions track appropriately and appear under "Email" in the Default Channel Group of Analytics > Acquisition > All Traffic > Channels area of GA? For example, should we use Campaign URL Builder to establish UTM links? Thanks in advance for any feedback. Erik
Reporting & Analytics | | SmileMoreSEO0 -
GTM: Transaction value without tax as variable
Hi Mozzers, I'm trying to create a GTM variable for transaction value without tax. There is no datalayer field for this at the moment. e.g. I only have these fields in the datalayer: Revenue (€19.99) Tax (€3.47) Price (€19.99) No field with the price without tax. Is there a way to create a variable? Is it possible to work with a specific function? Or is it standard to implement an extra field in the datalayer? Many thanks,
Reporting & Analytics | | WeAreDigital_BE
Sander0 -
WMT data vs. Analytics
Hi Each month I export my data from WMT and go through analytics. I also export our non brand queries from analytics and not WMT - I haven't had an issue before, but this month the impression data is quite different. In the hundreds of thousands different for keywords, everything seems to have taken a big jump and it seems strange. However, not everything is different, I've spot checked some and its; consistent in both, I'm not sure what's going on? One example would be: <colgroup><col width="281"> <col width="72"></colgroup>
Reporting & Analytics | | BeckyKey
| industrial shelving | 1016 |
| industrial racking | 999 | These appear as impressions from Query data in analytics, but they appear nowhere in my WMT query data. Analytics query data shows: | industrial equipment | 670 | WMT Data: | industrial equipment | 143 | Anyone have any idea? Perhaps some kind of tracking issue? Also I've triple checked dates etc...0 -
Clarification on Analytics Goals & Funnel Logic
I have a few questions about funnel flow and how my goals are tracked. 1. My goal is a user completing a contact form, form.html. Upon completion, user is redirected to thanks.html, ending the flow. Every page header contains a direct link to form.html. Does this mean every page on my site is considered a "step" leading the user to the contact form? If so, do I list each page containing the form link in the steps, or only form.html? 2. If the above isn't correct, how do I track how the user wound up completing my form. I'd love to know which pages are performing better and leading to more sign-ups (goal completions). Currently I think I'd only be setup to know when a user is on the form.html page and whether they complete it or leave, not how they got to form.html in the first place. 3. My .html pages are actually embedded via iFrame on WordPress pages. My form.html page is hosted on .com/quote and upon completion, form.html redirects to thanks.html within the iFrame (.com/quote remains the actual page). I'd assume this is going to throw off my stats since the physical .html pages don't have Analytics code embedded? 4. How would I track different CTAs on the same page which lead to the same goal? For example, header vs. footer CTA's to the same sign-up sheet. Let me know if you need anything clarified. Thanks a lot for the help.
Reporting & Analytics | | kirmeliux0 -
How to exclude IP from Google Analytic?
Hello Guys, I am admin of google analytic, i am trying to exclude traffic in google analytic from admin, view section then filter but not there is no button of save? Can anyone please help me? PFA of image. zOkvX1n.jpg
Reporting & Analytics | | devdan0 -
Potential Security Issues Installing Google Analytics GTM
Greetings MOZ Community!! My SEO firm plans has requested that Google Analytics GTM be installed on my website to better track goals and events. My developer will be responsible for installing the GTM script on my website and the SEO firm will actually configure GTM to track goals. Is anyone aware of GTM causing server errors/issues when installed? My developer claims that running GTM would create additional vulnerability to hacking. Is anyone aware of potential security risks from running Google Tag Manager? Once Google Tag Manager is installed, will it make the site more difficult for my developer to administer? Will there be increased risk of the code breaking? Overall, is GTM a big improvement over the existing version of Google Analytics? Is it worth the effort to install? My SEO firm is very much in favor of this upgrade. I would like to move forward provided there is no major downside. I look forward to feedback. Thanks, Alan
Reporting & Analytics | | Kingalan10 -
Google Analytics
Is there any way around being able to set up 20 goals in Analytics? What if one of my clients want to set up 10 pages with separate actions to track on each page. Will then each actions count as a separate goal? If this is the case, how could I work around creating more than 20 goals? Would I have to look into hiring/buying a third party or separate software? Your help is greatly appreciated.
Reporting & Analytics | | flcity150 -
How do I connect GA to SEOMOZ if I do not have access to a GA account ?
I am not the owner of the account it is a clients and I need to connect my SEOMOZ to their GA account.. any ideas? Thanks in advance 🙂
Reporting & Analytics | | Andisue1