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.
Related
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.
I have installed the google analytics in our e-commerce site using google tag manager. From the product detail page you can click on the colors to see the same product in the different colors. I implemented this using ajax so the page load is not required. I was curious if the google analytics will count as multiple reviews a user clicks on the different colors or do I need to explicitly call something in order for the GA to count as multiple reviews.
First of all, that depends how and what kind of GA you've implemented.
To implement analytics, you have to specify a trigger for the analytics tag. That trigger normally determines if a tag is fired or not.
If you used a page load trigger, then the tag will only be triggered on the real page load. And it won't be triggered on your ajax manipulations.
With only one exception: if you used the GA4 config tag, you had this checkbox there:
The checkbox doesn't only send the pageview on config load, it keeps sending pageviews on every history change. Therefore, if your ajax causes history change and you use the GA4 config tag, then you're getting pageviews.
But this is theory. You can just go and check. Open your network tab, filter the request by collect and see what's sent when. Or alternatively, install the adswerve datalayer debugger and it will log whatever is sent whenever it's sent into the console in a very neat, clean way. This is how it works on this page:
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 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 done the following:
Added GTM tracking snippet
Set up a GA (UA) tag of type 'Pageview'
Published version
I am getting data in, (Users, Sessions and Pageviews and Real-Time)
But, also receiving this notification in the GA UI:
"No Hits Property [MYPROPERTYID] is not receiving hits."
All I have been able to find suggests that maybe the tracking code is somehow "broken", but the code on the page seems to be identical to that which is given by GTM.
Also, as mentioned, data seems to be coming in fine.
How can I beat this error? Is there something I have neglected to do in my workflow that is leaving GA unsatisfied (such as an additional GA tag of some kind)?
Did you just very recently create the Account or Property in Google Analytics? It may take up to 24 hours before the data is completely processed, which would explain that Notification.