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
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
-
Disabling Hubspot AMP plugin - impact on GA
Hello, all!
Reporting & Analytics | | SimpleSearch
What impact have you seen if you've used the Hubspot AMP plugin and then disabled it?
We saw a big jump in sessions, which is weird because GA was tracking AMP pages. I'm trying to wrap my head around why this is happening but my brain isn't working 🙂0 -
Cross domain tracking Google Analytics
Hi there, Got a question on cross domain tracking: We have a couple of TLD's to serve localized content to our visitors, next to our main .com TLD where our app is running as well in a subdomain. Situation is this: Local sites:
Reporting & Analytics | | jorisbrabants
marketingsite.be
marketingsite.com.br
marketingsite.fr Main site: marketingsite.com
app.marketingsite.com Conversion gets triggered when somebody ends up in app.marketingsite.com/firstuse for example. People can sign up at the local site filling in their email but they end up in app.marketingsite.com/firstuse Reading this article on cross domain tracking I'm getting a bit confused on the setup of the tracking code itself. The sample code provided shows these two lines: ga('require', 'linker'); ga('linker:autoLink', ['maindomain.com','targetdomain.com']); Now the question 🙂 Is it correct when I think that maindomain should be replaced with our local TLD's on every one of those, and that targetdomain is where the conversion happens? In this case the .com site?0 -
Blog Post Analytics
Does anyone know of a Wordpress plugin that has similar functionality to the post analytics SEOmoz blog posts include?
Reporting & Analytics | | David_ODonnell0 -
Registration tracking with Google Analytics
Hi everyone, I want to track user registrations with Google Analytics for a customer's website. The thing is after registration visitors are not directed to a specific page, so I can't set it as a goal. I thought of tracking submit button with event tracking, but that data would not be true as a visitor may click it more than once, and there's the login with facebook and twitter thing. Before convincig customer to create a registration confirmation page, I want to make sure there's no other way as they don't want to make any changes to the current website. Any ideas?
Reporting & Analytics | | ugurcanuzer0 -
Campaign shows no traffic from Analytics
My campaaigns are connected to GA but traffic is zero for all campaigns
Reporting & Analytics | | berndheyer0 -
Omniture vs Google Analytics
What's your opinion on analytics tools? Specifically Omniture vs Google Analytics. Is Omniture really that much more powerful than GA? Have you used GA Premium, the enterprise package? My main question - Can GA (free or premium) do everything that Omniture can? If GA Premium and Omniture were the same price, which would you choose? Is one harder to implement, pull reports, tweak, ect? Thanks in advance.
Reporting & Analytics | | akim260 -
Why is a section of our website dropping in&out of Google SERPs?
In July 2011 we started a news section that has it's own 'subfolder' /news/ (http://www.chorder.com/news/new_gear/, http://www.chorder.com/news/gear_deals/ etc.) The whole news section is dropping in&out of Google SERP's since late October, as show in attached graph. All news texts are real deal, written by our own staff, linked from homepage. Any idea why this happens and how to prevent it? cmqky.png
Reporting & Analytics | | imventurer0 -
Google Analytics Options
A couple of months ago, I read about a new web stats application that is real time but more importantly let's you track user actions on a page (i.e. which buttons were clicked for example). This information would obviously be very helpful in continuing to improve site performance. Anyone have suggestions or know the name of this application? I do not mind paying but am not looking for an enterprise class application.
Reporting & Analytics | | Mont0