I am trying to track a html5 video for which I have created a Tag with custom HTML using the source code from this link (https://www.thyngster.com/tracking-html5-videos-gtm/). Then I created data layer variables, eventAction, eventCategory and eventLabel. All of these seem to work fine in the debug mode of Tag Manager. However, in Google Analytics, the event Action shows "undefined". I don't know where I have missed out. Any help is much appreciated. Thank you.
Related
I have configured Google Analytics using GTM in my single-page application build in next.js. In order to check the pageviews I push a custom event to the data layer called "pageview" each time a user change to a new page.
In GTM I have created a trigger that looks for the "pageview" custom event and fires up the google-analytics tag.
Everything seems to be working properly but when I enter the debugview of google analytics and I change from one page to another 2 paweviews are recorded instead of one.
I have check GTM assistant and the tag is not firing twice, so I do not know where the problem might be.
This is messing my stats as I have twice more pageviews than in reality.
Here in the photos i upload you can see the tag. In the history and message no tags are getting fired
While this is what happens in google analytics (both page_views contain the exact same parameters (same page_refererr, page_location...):
Here is the implementation insine next.js. Basically I call the function GTMPageView() each time a route is change. GTMPageView() is the function that pushes "pageview" into the datalayer
I really appreciate any kind of help as I have been hours trying to solve the problem and I cant get to the end of it.
I have a Gravity Form with a text confirmation page, not a redirect confirmation. I would like to track this form through Google Tag Manager to display a goal conversion in Google Analytics (Universal Analytics).
I've followed the steps here: http://www.notesonclick.com/blog/gravity-form-event-tracking-via-tag-manager/
No conversions are being recorded. However when using GTM-debug mode, all the triggers are firing, even the gform.submit.success tag is being fired after clicking the submit button.
Could someone please help?
We've had the same issue. The only way we've been able to get GTM to record conversions is to remove validation. We'd rather it validate, but we haven't found any other workarounds.
I have implement that code in multiple site and it is working fine, Since you are not getting conversion then there might be issue with form Goal Creation in google analytics. or some time i have noticed this things happening when google analytics have been implement directly on the site and event tracking setup through tag manager..
if you still need some more help leave comment in comment box of same blog
I saw the excellent and elegant solution by Dinesh but was not able to implement it on the site I was working with. I put a hack together that work correctly. For detailed instructions, please see here.
http://www.albanyanalytics.com/2018/03/gravity-form-tracking-with-google-tag.html
I'm trying to use the DOM Element variable in Google Tag Manager and i focussed on one element in my webpage. I have been following this video tutorial:https://www.youtube.com/watch?v=nxEYZthbzp4
Everything seemed to work as i want. However when i looked in my Google analytics i see that the data-layer doesn't send the data that i want, but just 'null' (even though that in the google tag manager everything looks just fine).
How can i solve this problem?
Screenshot of GTM datalayer & GA output
I think the value is populated after the data is sent to google analytics
check variable by individual events(pageview, dom ready, window loaded, gtm.click);
also please share your variable and trigger setup.
Hope this helps,
Cheers Analytics ML
Please advise how to track clicks on a twitter widget iframe through gtm for google analytics.
A Step by step process would be fine.
I know that i need to set events for the tag but my first need is to populate html elements to dataLayer.
But so far, as an iframe, the link click listener doesn't record anything.
Here is the widget:
#DalmTO: nothing i 'm afraid just auditing the fact that under tag manager debug mode, with gtm.linkclick listener the dataLayer record any variable from this widget
#Eike Pierstorff : it was just to display what i'm talking about :) . As this kind of widget seems to be popular so maybe it could help ..sorry. Otherwise, find enclosed another screenshot but regarding the iframe syntax. as the code is very long i just send over an excerpt through a screenshot.iframe code
Thanks a lot for you help.
I'm having a nightmare trying to get enhanced eCommerce data showing in Google Analytics. Using Tag manager I've got the below in my data layer but I can't see anything in my Google Analytics account.
Unfortunately at the moment I'm having to scrape the DOM for the relevant information, so I'm pushing all the information to the datalayer with a 'payment ' event. The corresponding tag is correctly firing on this event.
The GTM preview inspector is showing everything as I would expect
I have ticked the relevant enabled enhanced eCommerce boxes and waited 72 hours after each attempted change but still no luck - can anyone help? I'm sure I've missed a simple step somewhere but no luck on the Google developer docs.
Many Thanks,
Eoghain
'Payment' Event:
After page Fully Loaded:
Tag:
Trigger:
OK I believe the issue is because you are using the Transaction type tag. This applies only to standard e-commerce. You need to piggyback your e-commerce data with either a pageview or a (non interactive) event.