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
-
Filter staff IP address in Analytics
Hi, I'm trying to filter staff visits from Analytics on a new view. IT have given me an IP address range and I have found the following advice: "For an IP address range, you’ll have to select Custom Filters, then choose Exclude, and IP Address from the dropdown list. Then, enter a regular expression for the IP Address" If this is correct, how do I write the IP address range 1xx.xxx.xxx.160 - 1xx.xxx.xxx.223 in RegEx? Thanks
Reporting & Analytics | | Houses0 -
Funnel Problem in Google Analytics - Please help
Hello, I did set up a several funnel steps in my analytics account to get the funnel visualization report. But it's look fishy, something's clearly wrong that it shows only 10 visitors at the first step but actually more than 5k visitors has visited first goal page and followed through the another all steps. Everyday we are receiving 5k to 10k goal conversions but it not showing in the entire funnel steps through first step to last step. Please see the attached screenshot URL for funnel setup (Admin) and funnel visualization report comparing last two months traffic. Total goal conversions received 3,605 in last two months but in funnel chart (report) it showing only 2% conversions in last step. Anybody can tell me what is the problem with that or analytics not tracking properly?si65Y
Reporting & Analytics | | flightcentre200 -
Moving data between Google Analytics Properties
Last summer we setup another Google Analytics property for us with Universal Analytics and have been running this alongside the old Google Analtyics property. is there a way of exporting all the old data from the old property into the new Universal Analytics property?
Reporting & Analytics | | ese0 -
Setting up goals in Google Analytics
Hello! This question is seems so obvious that I'm also ashamed to ask... almost. If the goal of a website is to have a visitor complete a contact form, when setting up the Goal in Google Analytics (as a "URL destination") the URL of choice would be the form's thank you page, correct? Because that's the page that proves the visitor completed the task we want them the achieve. Right? Thanks!
Reporting & Analytics | | SmileMoreSEO
Erik0 -
Google Analytics underreporting
I have a site selling items, I use paypal buttons and get a report using ipn back from paypal telling me when I have sold a item. I also have a Google analytics event setup on the button, and one on the confirmation page.
Reporting & Analytics | | AlanMosley
For example in the last few days I have sold over 10 items from the website, but have only 2 events from the button and none from the confirmation page. The confirmation page depends on the user getting redirected back from PayPal so I can see that being upper reported, but there is no way you can buy without clicking the button.
I have the chrome addon from google to debug your analytics code and it fires every time.
The figures seem to report only about 20% of events over a long period of time. If it was not working at all, I could assume I have not set things up correctly but this is not the case, I get a regular flow of events but at about 205 of sales.
I am very disappointed with GA, seems a waste of time. anyone else had the same expirence?0 -
Google Analytics Report throws up Google as a referrer
Good morning from Wet & Windy 12 degrees C wetherby UK... Using Google analytics I've noticed in the traffic sources refferer subsection some traffic is categorized as originating from Google. Whats puzzling me is.... I know a huge amount of traddic stems from Google but as the below screenshot illustrates only 21 visitors come from Google: http://i216.photobucket.com/albums/cc53/zymurgy_bucket/google-refferal-sources-top-levelcopy.jpg And when i drill down some are coming from Google mobile 😞 http://i216.photobucket.com/albums/cc53/zymurgy_bucket/google-referral-sourcescopy.jpg Is traffic categorised as Google referrer down to Google hiding searches via ssl as explained here: http://i216.photobucket.com/albums/cc53/zymurgy_bucket/google-referral-sourcescopy.jpg Any insights welcome 🙂
Reporting & Analytics | | Nightwing0 -
Track banner ad with google analytics
Hi We have a top banner ad on an external renown site only to attrack traffic. It does show up in google analytics, but i have seen some increase in (direct) / (none) traffic. Is there anyway i can track it when banner is showed from 2 separate URLs http://www.tv2torget.no/bedrift/netthandel/ and http://www.tv2torget.no/bedrift/netthandel/barneklaer/ Thanks Dan Lærum
Reporting & Analytics | | danlae0 -
AW Stats vs Google Analytics
Hey Moz Community, I am looking to get opinions on the best practice for analytics/traffic analysis. From experience I know that AW Stats reads high and Google Analytics reads low for traffic for reason in this article http://www.smartz.com/blog/2009/01/23/analytic-confusion-%E2%80%93-awstats-vs-google-analytics/ It drives me a little nuts how far off both are for some pages. I have one article that shows 100 views (GA) and AW stats shows 5 times that number of views. Any suggestions or systems you recommend? Thanks
Reporting & Analytics | | johnshearer0