Category "google-tag-manager"

How would you capture a discount that covers the cost of taxes with GA4 Purchase parameters?

Would I add a data layer variable for the purchase event outside of the items array? This is Google's recommendation for purchase events. I want to add a coupon

Adding an custom event to GTM Vimeo event tracking

I'm using this script to push play/pause/progress of vimeo videos on our website. I'd like to push another event "load" when video is loaded on page. I've tried

Could not connect to Tag assistant from external host referrer in preview mode

when I tried to open the preview mode link from email I get this error the only way I could connect is through tagassistant therefore the only initial referre

How can I load Google Tag Manager to a next.js app, AFTER the app is fully loaded?

I'm building a next.js application and would like to load Google Tag Manager (GTM) only AFTER the entire page is loaded. The goal behind this is to improve the

Google Tag Manager wont fire if I click on the Copy / Text of the Button

My google tag manager wont fire when I click on the copy of the CTA Button. But it fires when I click the CTA Button area around the copy. If I click "Talk to u

How to check for live issues with google tag manager?

Previously working code that downloads a csv file from our site, now fails. Chrome, Safari and Edge don't display anything helpful except "Blob Blocked", but F

How can I debug Google Analytics 4 events, that are missing in the debug view

i'm fairly new to Google Analytics and I'm starting with the new Google Analytics 4. I've set it up via Google Tag Manager. I have two custom events: cta_visibl

GTM and GA4 configuration - Losing custom dimensions

We recently setup our GA4 account in order to be ready for the upcoming end of Universal Analytics. However, we are getting a lot of (not set) on our reports wh

Cookie “_ga” will be soon rejected because it has the “SameSite” attribute set to “None”

I have added Google Tag manager to my react project, with the help of react-gtm-module After successfully adding it, I see some warning in consoles which are be

Google Tag Manager Server-Side preview not working

Over the past two weeks, I've discovered preview-mode no longer works on new GTM server-side deployments. (I'm no stranger to setting up and configuring google

How to export google tag manager tags and triggers into Excel or Google sheet file?

I have to do an audit for different Google tag manager accounts and I would like to export from their respective containers the tags and triggers into an excel

Ng serve throwing @angular/core/core has no exported member 'ɵɵFactoryDeclaration'

I'm getting errors stating that angular/core/core has no exported member 'ɵɵFactoryDeclaration' while I ran ng serve on angular9 project. The error I

Ng serve throwing @angular/core/core has no exported member 'ɵɵFactoryDeclaration'

I'm getting errors stating that angular/core/core has no exported member 'ɵɵFactoryDeclaration' while I ran ng serve on angular9 project. The error I

How to dataLayer.push using GTM Custom Templates?

I have GTM Custom HTML tag that intercepts dataLayer.push called on the page, checks it for Ecommerce and if it is detected send Ecommerce data to remarketing p

Google Tag Manager Form Submission with Formik

Try as I may, I am unable to successfully track any form submissions with Google Tag Manager when the form is submitted by Formik in a React project. I have tr

How do I track clicks on <a> tag with span class inside using Google Tag Manager?

I've been trying to get GTM to fire a tag every time a user clicks on the link text below ("Click here to donate"). <a href="https://www.testurl.com/dona

Adding items to the same datalayer object after page load

On my site, I have a page object that contains multiple bits of information about the page that is currently being viewed that I want to push to the datalayer.

What is the `js` gtags.js command?

The embed code for Google Analytics (well, GA via google tag manager's gtags.js) looks like: <!-- Global site tag (gtag.js) - Google Analytics --> <sc

Differences between "Click Classes" and "Click Element" in Google Tag Manager

I don't really understand the differences between Click classes and Click Element in Google Tag Manager. I don't understand the expected use of these event and

How to track a PDF view (not click) on my website using Google Tag Manager

How can I track that someone visited the following URL of my website http://www.website.com/mypdf.pdf. I tried using a Page View trigger on a Page View tag. I'