Edit
Contact us
Salocin Group Leaders in data and AI-enabled connected customer experiences
Edit Engineers of connected customer experiences
Join the Dots Independent, data-led media thinking for sustainable growth
Wood for Trees Optimisers of future fundraising performance
  • Home
  • Our services
    • Cloud solutions
    • Data science
    • Modern Data Platform
    • Privacy and AI compliance
  • Our partners
    • Microsoft
    • Apteco
    • Salesforce
  • Our insights
    • Blog
    • Case studies
    • Reports
    • Webinars
    • Whitepapers
  • About Salocin Group
    • Careers
  • Contact Salocin Group
  • Home
  • Who we are
    • B Corp
    • Careers
  • Our work
  • What we do
    • Intelligent data
    • Marketing technology
    • Transformational CRM
    • Our technology partners
    • Privacy review
  • Our insights
    • Blog
    • Case studies
    • Reports
    • Webinars
    • Whitepapers
  • Contact Edit
  • Home
  • Broadcast media
  • Digital media
  • Print
    • Direct mail
  • Data
    • Our work with Herdify
    • EPiC
  • Media agency
  • Our insights
    • Blog
    • Case studies
    • Reports
    • Webinars
    • Whitepapers
  • About Join the Dots
    • Careers
  • Contact Join the Dots
  • Home
  • Services
    • Actionable insight
    • Data discovery
    • Data engineering
    • Data hygiene
    • Privacy review
  • Products
    • InsightHub
    • Apteco
    • Microsoft
    • Data management
    • Consent and preference management
  • Our insights
    • Blog
    • Case studies
    • Reports
    • Webinars
    • Whitepapers
  • About Wood for Trees
    • Operating principles
    • Careers
  • Contact Wood for Trees
Blog

Why doesn’t Google Analytics data match Google Tag Manager previewer when debugging?

By Edit | 17 Apr 2018

What do you do when…You create a tag via Google Tag Manager, use the GTM previewer to debug it, GTM tells you “that’s working!” – but when you publish the new container and try to view the results of the tag, it just isn’t pulling in the right data or any data at all?

Seems unfair, doesn’t it?

I don’t know if this is a bug in GTM or if it will become “fixed,” but hopefully this post might give you some guidance about what to do.

Example – Fjellsport

This example comes from Christian at Fjellsport (the largest outdoor online store in Norway) which came about after trying to implement internal site search tracking.

Christian wanted to implement a tag for instances in which someone searched on Fjellesport, but their query returned no hits. He created a Google Analytics Event Tracking tag that fired on DOM Ready and returned either “hits” or “no hits”, depending on the search query result.

When he searched for a rubbish search query and ran GTM previewer, it showed that the tag had fired with the event category “no hits”, which was as expected.

However, looking at Google Analytics, this search string (and other garbage strings) was pulling in as “hits”.

Returning to the GTM Previewer, you can see on the left-hand side we are observing the “Summary” of the tags that have fired.

The left-hand display shows everything that has happened on-site (with regards to GTM) since the pageview began, with the most recent action at the top. You can see that it goes:

  1. Page View
  2. Message
  3. DOM Loaded
  4. Window Loaded
  5. click

In the case of this tag, it was supposed to load on “DOM Loaded” so I clicked “DOM Loaded” on the left-hand side to see what actually happened when the DOM loaded.

You can see that on “DOM Ready” the Action type is indeed “hits”, which is why Google Analytics is pulling this in.

I explored the next step after “DOM Loaded” which is “Window Loaded”, and if you switch to “Variables” and look at the variable called “EMMA – HitsNoHitsConfig” (which is the variable that we were using to create the Event Action), it says “No Hits”.

Now we have discovered what needs to be amended – the variable works, but it’s the trigger that’s incorrect.

Solution: Change the trigger from “DOM Ready” to “Window Loaded”

What if this happens to me?

Every case is different, but here are some things you can check:

  • Is your container published?
  • Is the tag paused?
  • Are the firing conditions correct?
  • If using GA, do you have a filter that may overwrite the data coming in?
  • Is there another tag that may interfere with this tag (for example, due to firing order)?
  • Is Google Tag Manager installed correctly?

If none of these things help solve your mystery, please feel free to get in touch.

Share this

  • Email
  • WhatsApp
  • LinkedIn
  • Facebook
  • X (Twitter)

More insights

AI isn’t going to take your job (unless you really want it to) 
Blog

AI isn’t going to take your job (unless you really want it to) 

By Edit | 18 Jun 2024
Customer relationship marketing: How generative AI is revolutionising engagement  
Blog

Customer relationship marketing: How generative AI is revolutionising engagement  

By Edit | 4 Apr 2024
Personalisation as a process
Blog

Personalisation as a process

By Edit | 8 Mar 2024
  • Privacy policy
  • Cookie policy
  • Ts&Cs
  • Report a concern

© 2025 Edit, part of Salocin Group Ltd. All rights reserved. Company no.: 0362​4881. VAT no.: 4208​34911.

Salocin Group Certified B Corporation | Cyber Essentials Certified | British Assessment Bureau, ISO 27001 Information Security Management
Salocin Group
Your cookie preferences

We use cookies to ensure this website functions properly, to analyse website traffic and for marketing purposes.

Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
View preferences
{title} {title} {title}