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
-
Attribution of conversions to payment gateway in Google Analytics
Hi all, We have been having a problem for a while now where most transactions are attributed to referrals from our payment gateway Sagepay. The issue started a couple of months ago, when we finally upgraded our website to https:// for logged in users and transactions. Before, when we were using http://, transactions were attributed to the correct channel. Even weirder, we upgraded 4 websites and only 2 of them have the issue now, the other two continue to attribute transactions correctly. I added Sagepay to the referral exclusion list which made no difference. Over the weekend, we upgraded to the global site tag and it seems to have improved somewhat, but yesterday 50% of transactions were still attributed to referral/sagepay. I am also seeing an odd issue, where for half of the transactions, the revenue and transaction are attributed to one channel, but the products (quantity) are attributed to another. One of the channels is always referral/sagepay and the other is the channel that the transaction should be attributed to. Has anyone seen this issue before? I'd appreciate any tips that might help us fix this issue. Thanks in advance!
Reporting & Analytics | | ViviCa10 -
Google Analytics SEO Queries Not Showing
Hi All, This might be a silly question, but for all the properties I monitor in Google Analytics, I'm now showing no data for SEO Queries under Acquisition for the past 6 days. Normally I would expect a few day delay in queries, but nothing for 6 days is somewhat peculiar especially as it was functioning fine prior to November 12th. Does anyone have insight into what might be going on? Thanks! URaNMa3
Reporting & Analytics | | amichaels0 -
Goal Totals in Google Analytics
How do I get a cumulative tally of all the goals reached in google analytics? I've been using the percentages currently, but I was wondering if there was an easier way. Thanks
Reporting & Analytics | | OOMDODigital0 -
Analytics - content performance
Hi guys, is there any way to group specific pages together in analytics and just see how they have peroformed visit wise, etc? I need to group some resort guides all with different names, it's tedious going through each one manually. Help much appreciated as always!
Reporting & Analytics | | pauledwards0 -
Google Analytics & Omniture Discrepancies
I am seeing a significant difference between my traffic numbers in Google Analytics and Omniture (Omniture has significantly more). I do not expect them to report exactly the same numbers but these are just too far off. Any idea why that is, or which one I should trust more? Thanks!
Reporting & Analytics | | emediaSEO0 -
Google analytics reality check?
Looking back over a 9 month period tracking analytics with getclicky my site showed a 29% bounce rate, with only about 1/4 of visitors spending 1 minute or less on my site. I've recently implemented GA (removed old clicky code) and although traffic is strong, my site now shows a bounce rate of about 82%. Engagement stats also show that 82% of visitors spend between 0-10 seconds on my site. My site is built on Wordpress and the GA tracking code wasn't placed directly in the footer, my developer built a field in the admin area to insert the UA number which automatically adds the code to all pages. I've checked the code and the tracking seems to appear on all pages. I took a look at AW Stats. It corroborates GA and says that 80% of visitors are spending 0-30 seconds on the site. Potential issues/clues: browser tests show small loading problems in Internet Explorer 7,8,9 (the phone number at the top of the header loads on the wrong side of the page) and major issues in Internet Explorer 6 (site doesn't load at all in IE 6). The thing is no one who uses IE 6 is coming to the site. Second, the site gets a grade of C in YSlow, it's not lightning fast at the moment. GA is showing average page load of 2.4 seconds, but don't think either of these issues should cause an 82% 0-10 seconds engagement number. My site is content rich/focused with very minimal advertising. Content is accessible well above the fold. My question: Does the fact that AW Stats and GA agree mean that those numbers are accurate, or is there a bug I should be looking for? How to explain the clicky numbers?
Reporting & Analytics | | JSOC0 -
No Social Sources in Google Analytics - what am I doing wrong?
Hello Everyone, I'm having a strange issue: I DO NOT have in my Google Analytics the "Social" tab under the Traffic Sources category. Look at the first image of this post: http://marketingland.com/google-analytics-social-reports-8138 How do you "get" that to show? Hope somebody has this issue and can help, Thanks a lot, Alex
Reporting & Analytics | | pwpaneuro0 -
Un-link Google Analytics
I have set the wrong account/password details for one of my campaigns. How do I 'step back' and choose the correct settings please? Thanks Ian
Reporting & Analytics | | driansmith0