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
-
Huge Decline in Links
Good Morning Everyone, Looking for some feedback as to why all of my Backlink metrics might be way down (as well as rankings)... Please see the details below that show some of the metrics from MOZ reports from August and from October. Does anyone know why these metrics are all so down? We have not done any link removal exercises or anything that would cause this drop --- please let me know if there is any insight any of you have as to what is the reason for this drop. Thanks Linking C Blocks August 3: 124 October 14: 23 External Followed Links August 3: 4486 October 14: 1558 Total External Links August 3: 4795 October 14: 1680 Total Links August 3: 21338 October 14: 17809 Followed Linking Root Domains August 3: 323 October 14: 116 Total Linking Root Domains August 3: 442 October 14: 143
Reporting & Analytics | | Prime850 -
Two GTM tags
Hi guys, I need some help on the following: My client has different websites worldwide all with country extensions and on overall .com domain. These websites (and GTM accounts) are all managed by local agencies. We would like to implement a cross domain tracking GA account in order to see some overall trends and numbers. We don't want to implement our codes in the existing containers as they are in many cases managed by local agencies. Is it really negative to implement two GTM containers on one website? Any other ideas? Thanks,
Reporting & Analytics | | WeAreDigital_BE
Sander0 -
Google Analytics, new property or views?
Hi All We have an existing Google analytics account which was customised relatively heavily a few years back, with custom variables, e-commerce tracking and the a large number of filters. We have determined that the custom variables and e-commerce tracking, at least for now, are no longer required and actually complicating our lives. We want to simplify the account and add a fresh set of goals and events. Our initial train of thought was to create an entire new property with the usual views, raw, test, main etc. We are proposing to retain both properties (6 months) so we can still do some comparative stuff. We're now wondering if we should retain the existing property and just create new views, the downside being that whilst we can compare data with previous periods it's meaningless to some degree as the filters etc are different. The plus of more views is that we're not firing the tag twice retaining two properties. Views and opinions welcome. Thanks
Reporting & Analytics | | mde9110 -
Google Analytics: Trackbacks & Network Referrals?
Buon Pormeriggio from 15 degrees C mostly cloudy Wetherby UK 🙂
Reporting & Analytics | | Nightwing
Whats the difference between Trackbacks & Network referrals within Google analytics social media reporting? I'd like to specifically understand why a link to site i'm working on withing this post:
http://huddled.co.uk/huddled-interviews-nicola-schaefer-from-liverpool-fc-e-l-i-t-e-s-8335/ is classed as Trackback & not a Network refferral 😞 Illustrated here is the link thats being recorded as a track back:
http://i216.photobucket.com/albums/cc53/zymurgy_bucket/track-back-query_zpsbab2679b.jpg And here is the data:
http://i216.photobucket.com/albums/cc53/zymurgy_bucket/google-trackbacks-2_zps2861fa17.jpg But why is not showing up in Network referrals? Thanks in advance,
David0 -
Viewing image search data in Analytics?
How do you view image search data in Google analytics? Do you need to apply tracking or can you drill down into the default data? Thanks.
Reporting & Analytics | | Bondara0 -
Google Analytics Custom Filter
Hello, Quick question, when I create a custom filter on a profile that already has data collected will that filter apply to already collected data or will the filter only apply from the day it was created? Am doing a custom exclude IP filter. Much thanks,
Reporting & Analytics | | Unity
Davinia0 -
How to combine several subdomain in google Analytics
Good afternoon. I have a question.
Reporting & Analytics | | meteorr
I have a main site site.com + many subdomains example1.site.com, example2.site.com, example3.site.com, example4.site.com .... I need to combine google Analytics reports into one. Information from: example2.site.com, example3.site.com
showed in example1.site.com Yk64j0 -
Google Analytics Goal Funnel Visualization Issue
I've setup a goal funnel but am having an issue when I look at the funnel visualization. It doesn't appear to be recognizing the 1st step of the funnel that I've defined in the goal edit page. The "Property Listing page view" is located at /listings/xxx where xxx is the number of the property. Within the funnel, I've added /listings/*, but when I go to see the funnel visualization, I see 0 counts for this step (even though it clearly shows on the entrance page to the left "/listings/622, etc". I've attached a .pdf with a few images to help make this clearer. Any thoughts? CRD-Funnel.pdf
Reporting & Analytics | | chrisfree0