I'm trying to create a Tag in GTM that will show as an event in GA when triggered. In addition, I'm trying to see the debug mode flow on GA that is coming from GTM in preview mode.
Debug mode not working
Earlier when setting up the account, I noticed the Debug Mode in GA isn't receiving any data from GTM. I tried implementing the debug_mode = true (Fields to set) in the GA4 Configuration Tag, as well as using the Google Debugger extension. Both didn't work.
GA4 Events not working
Although GA is reporting regular activity (sessions, engagement, etc.) it fails to gather the new GA4 event I set up in GTM. I followed a step-by-step tutorial by MeasureSchool on YT (https://www.youtube.com/watch?v=IkMRRcwEfi8) to accomplish this. Didn't work either.
Preview mode not showing GA Container activity
When entering "preview" mode, while the GTM container is reporting successful Tag fires, the GA is displaying a "No hits were sent by this container" message.
At this point, I am convinced there is a broken connection between GTM and GA, since quite remarkably, the two work perfectly on their own.
However, before I restart the entire process and start from scratch, I was wondering whether anyone has a clue to how this can be solved?
Many thanks!
You haven't completed debugging properly.
Use the network tab in chrome's devtools for debugging. Or use adswerve's datalayer debugger to get the same info in the console. Make sure you see events flowing to google's "collect" endpoint. Disable your adblockers. Make sure the tid field in the event payload is the same as your GA's property id if you still attempt to use GA UA, or it has to match your measurement id if you're using GA4.
Related
I have configured a GA 4 custom event in GTM via tag but I can't see that event firing anywhere in realtime report or anywhere else except in debug timeline of GA 4 console and in tag assistant of GTM.
As you can see in below screenshot of tag assistant , My custom event for GA4 is "checkout_confirm" which is being configured via checkout_confirm tag which is firing
once checkout is being done and seems working fine with params as intended
In analytics dashboard when I go and try to find that event data (even after 24 hours), It shows nothing but it is showing fired when I go to debug view of GA4 as you can see in second screenshot
Also in screenshot 3 as shown , google analytics debugger extension in browser console is showing that Google analytics is collecting data.
Please guide me , where am I missing , I am stucked from days . Kindly help me.
Events uploaded in Debug Mode are filtered out from standard reports. See "Also, data captured while Debug Mode is running will be filtered out of your other reports so that it does not artificially inflate your metrics (in other words, no more separate GA properties for production and staging)." from Validating Google Analytics 4 with Debug Mode.
You'll need to remove the parameters like _dbg=1 that is labeling this event as debug, and then, this checkout_confirm will show up in realtime and checkout_confirm's event-detail reports.
The only thing that I can think of is you're probably using a browser that blocks trackers (such as Brave or Tor) when you use the website outside the debug mode. Is that the case?
I've reviewed multiple blogs on how to set this up, followed all instructions like enabling Ecommerce in GA, data layer in GTM, etc.
Using GA Debug and Tag Assistant to troubleshoot. The data layer transaction data is on page and recognized by tag assistant.
GA Debug does show an error, but not sure why:
The tag is firing on the correct page after a transaction, and verified this with GTM preview mode.
Doesn't work and keep looking to see what the issue is, but can't figure it out, and hoping someone can help. Thanks!
it looks as your transaction data are pushed to dataLayer after gtm.js event. So if your tag is triggered by 'PaggeView' trigger type then this data will be unavailable. Consider switching to DOM ready trigger or push your transaction data with en event and use custom event trigger.
I have to debug the following message which I get in google analytics:
The data view XY was configured for e-commerce, but no data is transmitted.
This is the site.
As you can see in the source code, the tag manager is implemented properly, and a network analysis shows that data is transmitted, I get status code 200.
I used the extension "Google Tag Assistant", it showed that everything works fine (go to the site and click on something, then you will get this:)
As you can see it works. So why do I get this message?
Could you show us a little bit more what you have setup in GTM? As far as i can see i assume you should be getting pageviews since the beacons are correct:
But im also seeing you have some kind of event that wont work cause your Action and Category are undefined and Analytics says this fields are mandatory.
If you are not even seeing the pageviews you may have your UA-45904794-4 wrong (Or not well configured on GTM) or a filter on Google Analytics that shouldnt be there.
If you have any further questions just ask and i ll edit this and add more information.
Hope it helps!
You can check that you don't have ecommerce tracking in the container:
Since you do not, you should disable it in analytics on the property:
This warning means that according to the Analytics property settings you intend to track ecommerce data, but you are not sending any.
Or you can finish setting up ecommerce and publish the resulting container. For example, by following that section in the quick start guide:
I have an application with GTM head snippet. And GTM is set up with Universal Analytics tags for GA.
Everything was working great for months
2/22 - Data from GTM was not being sent to GA and I noticed a new console error
analytics.js:3 GET https://www.google-analytics.com/gtm/js?id=GTM-NZ9RDTS&t=gtm1&cid=116215814.1516126796 net::ERR_ABORTED
The GTM ID is not my GTM ID and I am not sure where its coming from.. any thoughts?
I am new to GTM, but I found another reason why there could be an unknown tag registered in GA. According to this discussion post on the community, it is possible that sometimes, a referral link could trigger GA to register foreign GTMs on your GA.
I had the same experience - new Google Optimize container with draft experiment. The Optimize container has been configured to be served through GTM and GTM container has been published. Whenever tried to check the integration an error appeared. Through Chrome Inspect I saw 404 for www.google-analytics.com/gtm/js?id=
The solution was to publish the experiment. Then immediately unpublished (ended) the experiment as it was not properly configured. The errors related to Optimize container have disappeared.
I am facing really weird problem related to event tracking. We have implemented google analytics standard code and event tracking for one website and that site is uploaded on online version of test staging sever (not live yet for public).
Google Analytics shows data for pageviews but not showing for event tracking. I looked at code and seems that its working fine.
Anybody has clue what is happening ? Please advise me
I'd check to make sure the __utm.gif tracking pixel request for the event is being made. Things to check:
Javascript errors when the event is triggered.
Verify __utm.gif via the network tab in Firebug or Chrome Dev tools, or Fiddler, or ga_debug.js
If your'e following a link right after the event is triggered, you may have to add a delay to allow time for the image request to be processed.
A code snippet showing your _trackEvent code might be helpful.
Looking at your comments, it is difficult for us to review and answer. Is it possible for your ti share the URL in which you have incorporated the event tracking.
However, possible reasons could be:
* a silly error in JS.
* proper closer of tags.
* need to set up goals as well (not mandatory though).