Relative Content

Tag Archive for google-tag-manager

GTM tag does not fire when using gtag.js function

I am having trouble getting my GTM tags to fire consistently. I’m using the gtag.js function gtag() to fire a tag when a user clicks a button on my page.
I don’t always see those tags on Google Analytics, so I went to GTM Preview tool to check out what is wrong. When looking at the preview, this is what I see for a particular tag that I’m testing. Keep in mind that I have GDPR protection set up, but I consented to the cookies, so I’m loading all the gtag/gtm scripts.

How can I use GTM to track 3rd party widget events?

I have a table booking widget (3rd party) in one page of my website and I want to send the successful booking events to my GA4. I have the same GTM ID in my website and implemented in the vendor’s backend.