Questions tagged [google-tag-manager]

Google Tag Manager (GTM) is a free Tag Manager solution for web or mobile. It automates the management of JavaScript code sequences which are used to send 'tags' from your website or mobile app to third parties. Supported tags include those from Google and DoubleClick (Google Analytics and DoubleClick Floodlight Sales, for example), and selected 'Certified Vendor' tags.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

Difference between Google Tag Manager Integrations

I have built several web sites with Google Analaytics and Google Tag Manager integrations. As time goes on its becoming unclear to me what is the difference between these integreations. Can someone ...
klewis's user avatar
  • 7,654
0 votes
0 answers
6 views

Why do I have two different cookies _ga between my domain and my subdomain ? GA4

I would like to track my domain and my subdomain in the same property GA4. Normally, GA4 does this automatically but it doesn't work for me. When I check cookies, I have different values for the ...
Kévin Bridier's user avatar
0 votes
0 answers
7 views

Swapping Between Multiple GTM Codes

So my use case is this: I have GTM set up on a website. Within the website, there is "Select Store" screen, where you can select a different store, and it will send you to that store's ...
user23017781's user avatar
0 votes
1 answer
17 views

links with utm parameters. How to shorten with GTM?

This is what I want to do: websiteurl.com?utm_source=click&utm_medium=here I wanted it to instead be: websiteurl.com?clickhere so that whenever I append ?clickhere to a url, it will always point ...
JustinePFU's user avatar
-1 votes
0 answers
11 views

Content Group data is not in sync with Page path in GA4

In GA4 dashboard, I've added another column, next to content group. I am assuming page path and content group to be in sync(it should reflect according to my configuration in GTM). But I notice that ...
Sudipto Roy's user avatar
0 votes
0 answers
19 views

How to use google tag manager with flutter web application?

I want to track user engagement in my website made in flutter. I am using google analytics 4 for report generation and google tag manager for managing tags. I have followed the instructions in tag ...
Spidey123's user avatar
0 votes
0 answers
12 views

There is a different googletagmanager in the site code

I see a flow identifier (data stream) in the pagespeed report, for example ...1111, but it is not in the code Unrecognized thread identifier. A completely different identifier works in the code, for ...
Андрей's user avatar
0 votes
0 answers
7 views

Disable Google Analytics when "Do Not Track" and "Global Privacy control is present"

I'm trying to disable google analytics if one or both of these features is present and I'm not sure how to accomplish this. Adding this to a gtag variable that I could then use to disable my scripts ...
miiiracle's user avatar
0 votes
0 answers
11 views

Google tag assistant connects to domain but can't find tag

I'm trying to use the Tag Assistant Companion extension to see if tags work. As you can see in the screenshots below, it connects to the site but can't find any tags. The site is hosted in Webflow. ...
Hugo's user avatar
  • 135
0 votes
0 answers
49 views

I need to get the alt attribute of the clicked image element. The alt value of multiple images on click. How to do in tag manager JavaScript?

This is the exact code that i'm using currently. function () { if (document.querySelector("#wrapper > section.panel.spacer--banner.bg--banner.flex-column.first > div > div > div....
Shara's user avatar
  • 1
0 votes
0 answers
25 views

undefined Variables in Tag Manager

I am new to Datalayers and GTM but i want to learn it on myself and right now im struggeling to get everything done correctly. enter image description here i have tried to add this item_id from ...
Massud Monshizadeh's user avatar
0 votes
0 answers
34 views

Tag assistant shows Google Tag hits but nothing registers in GA property

We have two environments set up: one for dev and one for prod. Dev site is dev.sitename and prod site is just sitename. For each of these I have a separate property in Google Analytics and a ...
Regardt Visagie's user avatar
0 votes
0 answers
30 views

The event is fired on GTM but not found on GA4

I have a SaaS application where I'd like to track when some buttons on landing page are clicked. One of them, it has been successfully fired (see attached file) using datalayer.push as seen on GTM, ...
hugalves's user avatar
  • 271
0 votes
0 answers
11 views

How to track conversion over GTM of a partner site

I am using GTM to implement a GA4 tag into a partner website once a particular event occures. My goal is to track view and also sales of the partnersite where traffic is received from my source. The ...
merlin's user avatar
  • 2,727
0 votes
0 answers
16 views

Tracking user id from incognito or private mode using GTag and GA4 [closed]

I can able to track the user id from normal and private mode , but some times getting page location and getting user id as null , can anyone please tell why getting user id as null in GTag and Ga4 ...
NAGARAJA NAIDU's user avatar
0 votes
0 answers
36 views

How to add Google Tag Manager data to React code

I have a React Application which includes several Static pages. I have added SEO data to these static pages using "Helmet" component. Now I got a "GA_MEASUREMENT_ID" from Google ...
Jayden's user avatar
  • 69
0 votes
0 answers
22 views

Discrepancy between button clicks and the views for the pages you click into

GTM only got installed on my employers site 5 weeks ago and I've not used it before so would appreciate any help! There are 'featured' tiles on the home page of the site to promote specific pages. ...
Jess_S's user avatar
  • 1
-1 votes
1 answer
17 views

Strange code appearing on website footer after adding GTM code

We are having strange issue after implement GTM on our website. It usually after 2 days and not gets deleted that. Only the header script is causing this issue, body code works fine. Also, the code is ...
Mohammad Anas Shakeel's user avatar
0 votes
0 answers
20 views

Duplicate events in GA4 but not in GTM or Debuggers

For some time now, I am seeing duplicate events in a few of my GA4 properties. Many of them show multiple events done by one user. Meaning, I can see 6 submitted forms by 3 people. Due to the nature ...
Irene Schelwald's user avatar
1 vote
0 answers
17 views

How to narrow down Google-related CSP rules so the Response Header of the Request will not get too big?

We have a globally used website and we use Google AdWords, Analytics, TagManager. However, we have CSP rules in the response headers specified by Nginx. The problem is that there are URLs like ......
Lajos Arpad's user avatar
  • 66.3k
0 votes
0 answers
21 views

Custom Jscript Event ALWAY returns "undefined" in GA4/GTM/Debug - any ideas

I have tried multiple different scripts ranging from simply "hello world" prints to more complex ones in GA4/GTM Custom Javascript Events. I had a jscript developer look at it as is stumped ...
Stephen Reece's user avatar
0 votes
1 answer
25 views

Extracting Price as a Variable Using Google Tag Manager from Specific Page Element

I'm aiming to retrieve the price value ($278.45) from a designated HTML element using Google Tag Manager and store it as a variable for further use. Target Element: <div class="sc-fbgIAx CmZAI ...
Carson Whitley's user avatar
0 votes
0 answers
30 views

GA4 - Email open event showing in real-time, but not in reports?

In GA4, I cannot find a way for the real-time email open event to show in reports. Here's the code that is in email signature: <img src="https://www.google-analytics.com/collect?v=2&amp;...
Steve's user avatar
  • 1
0 votes
1 answer
25 views

Set-Cookie response header doesn't set a cookie (GTM server-side implementation)

I'm trying to set a cookie with the response from my server-side GTM container. My setup: Custom HTML tag on client-side GTM: <script> fetch('{{sst address}}', { method: 'POST', ...
Mariusz Brucki's user avatar
0 votes
0 answers
16 views

Implementing TCF 2.2 if site uses Google Tag Manager rather than gtag.js

I need to implement Google Transparency Consent Framework (TCF 2.2) on a website that uses Google Tag Manager rather than gtag(). The Google instructions for implementing the code state the window ...
Margaret's user avatar
0 votes
1 answer
22 views

GTM event only triggered when certain element inside target is clicked

With GTM, I am tracking the clicks on all cards containing a certain id (go-to-store-card) a card looks like this: <a id="go-to-store-card-vuori" href="https://vuoriclothing.com/&...
Célia Dgr's user avatar
2 votes
1 answer
117 views

auto scaling for ECS service

I have setup GTM server side following this guide: https://aws-solutions-library-samples.github.io/advertising-marketing/using-google-tag-manager-for-server-side-website-analytics-on-aws.html I am ...
x89's user avatar
  • 3,004
0 votes
0 answers
26 views

Add to cart, view cart, view item and purchase item in GTM as an array

I am having difficulties to list multiple items that were added or purchased to list them in an array in GTM due to my inability to understand javascript. But I do have the Javascript codes that were ...
I.mahadi's user avatar
0 votes
0 answers
21 views

Multiple product name in item_name of add_to_cart event like an array

I am facing a problem as I have no knowledge in Javascript. The thing is I am using this custom html in GTM to send the add to cart event data to dataLayer, "event": "add_to_cart", ...
I.mahadi's user avatar
0 votes
0 answers
17 views

How to capture pre-populated form fields with Google Tag Manager?

We need to use Google Tag Manager to capture the values in a form that is hosted by our CRM (so we can't modify the form code). When the user inputs a value into a text field, or selects a choice in a ...
Jannette's user avatar
0 votes
0 answers
10 views

Track Form Fill Message Inside Div Class Using Google Tag Manager

I'm trying to track a form fill message using Google Tag Manager (GTM) but I'm pulling my hair out trying to figure out the trigger required to track the message. Unsure if a element visibility ...
Brett Bennell's user avatar
0 votes
1 answer
39 views

How do I track a conversion which captures users from Mailchimp that complete a form on a separate page?

GTM task for Google Analytics 4 I have Mailchimp email campaigns which include links to pages advertising our events. The links from the email include a UTM query string like so: https://www.example....
David's user avatar
  • 13
0 votes
1 answer
72 views

400 Bad Request while sending data to Google Tag Manager

I have setup GTM server side following this guide: https://aws-solutions-library-samples.github.io/advertising-marketing/using-google-tag-manager-for-server-side-website-analytics-on-aws.html Now I ...
x89's user avatar
  • 3,004
1 vote
0 answers
24 views

Google tag manager datalayer

In GTM documentation there are ways to enable data layer by pasting a given code in the body section of website's source code for getting datalayer information of the purchase event. Now I have been ...
I.mahadi's user avatar
0 votes
0 answers
46 views

How to get name of the event setup in GA4 on console using JavaScript

I have a website and setup GA4 with Google Tag Manager setup. In the GTM, I created a trigger and an event to get recorded in the GA4. I can see that event in my analytics dashboard. I want to get the ...
Sukruth Kartheek's user avatar
0 votes
1 answer
23 views

How do I create a code for a custom variable in GTM to track the title of a click?

I'm trying to pull the card's title when a user clicks on it. GTM is not pulling this information automatically, so I believe a Custom JavaScript Variable would be the best option. This is the code of ...
BaT's user avatar
  • 9
0 votes
1 answer
170 views

Triggering GTM Event Based on URL Change in Main Page Caused by Click Inside an Iframe

I am working on a web project where I have an iframe embedded in my main page (hosted on cba123.com). Within this iframe, there are links that, when clicked, change the URL of the main page to a ...
Fabian's user avatar
  • 392
0 votes
0 answers
12 views

Google Tag Manager - gtag() events custom not working send request on WordPress website

I have an issue with Google Tag Manager on WordPress Website, the issue if add code gtag() events custom not working to send the request 'collect'. But if using gtag('event', 'gtm.init') is working ...
Iqbal Fasyah's user avatar
1 vote
0 answers
52 views

GA4 - Trigger events via PHP

I use a Google Tag Manager (GTM) account to send events to Google Analytics 4 (GA4). I have a tag configured in my GTM that triggers when the page URL contains a specific parameter. This tag gets the ...
Bruno's user avatar
  • 67
0 votes
0 answers
26 views

REACT NATIVE - Firebase Android e-commerce events not fired with Google Tag Manager

we are working on a React Native app that implements various react-native-firebase modules. The plugin implementation was done correctly, as we could see the various events on the Firebase console. ...
e-compa's user avatar
0 votes
0 answers
20 views

When I activate the data layer using a GTM server-side plugin, the "Add-to-Cart" remove button stops working

I created a unique theme for my WooCommerce business and chose to add a GTM server-side plugin https://wordpress.org/plugins/gtm-server-side/ to improve my analytics, however, something went wrong. It ...
Md Maruf Hosen's user avatar
0 votes
1 answer
49 views

How do I trigger a function when the headless ui react Disclosure component opens?

I am using @headlessui/react and want to send a google event to the datalayer when one of my Accordion Disclosure components is in the open position. How can I trigger a function to run when it is ...
Yan Digilov's user avatar
0 votes
0 answers
18 views

Ecommerce data in GTM GA4 Event tag not showing up in GA4 Ecommerce Purchases report

I am using GTM on our Product Cart website to fire a GA4 event tag called Product Cart Purchase, with the event name purchase_from_cart. When users complete a purchase, they are redirected to a page ...
rhoffen's user avatar
  • 11
0 votes
0 answers
31 views

getPropertyValue sometimes returns empty string for CSS custom property

I am rendering the following style very early in the <head> : <style> :root { --enhanced: false; } @supports (selector(:not(.foo))) and (aspect-ratio: 1 / 1) and (margin-block-...
theclarkofben's user avatar
0 votes
0 answers
40 views

can't track revenue without "purchase" event

GA4 call api send event name subscription for track revenue but on report conversion not count revenue i hover on total revenue of Engagement => Conversion and show message "The sum of ...
Neutrino's user avatar
0 votes
0 answers
26 views

Messages are not pushed on the site chatbot using Google Tag Manager

I'm facing the next issue. We've successfully implemented a chatbot on our website using Crisp. It works as expected in its basic version. However, we've encountered the need to create more complex ...
Olga Sheremeta's user avatar
0 votes
0 answers
18 views

google tag manager conflict with webengage

i am new to google tag manager. we provide a cold call on our website (hot call is when we have the phone number in the website and the costumer can call by clicking on it but cold call is when whe ...
ffaarry's user avatar
0 votes
0 answers
16 views

Parameter Names not showing up on event page in GA4 reports

events in last 30 minutes reports > engagement > events > add_to_cart I've had this problem for awhile across multiple GA4 setups: In the Realtime view and Debugview I can see the event ...
QdotD's user avatar
  • 1
0 votes
1 answer
90 views

Is it normal for GA4 Realtime view to have a 20+ hour delay in data reporting?

I'm looking at the Realtime view in GA4, and it says there has been a purchase on my site in the last 30 minutes, but looking at my orders I don't have anything that recent. Looking at the transaction ...
ObviousFoxx's user avatar
0 votes
0 answers
28 views

how to call on DataLayer in custom event for MIcrosoft ads

i am trying to connect my Microsoft ads acount to GTM, for a ecomerce tracking event. the code i am given my Microsoft to implement is this " <script> function uet_report_conversion() { ...
Thomas Stavø Johnstone's user avatar

1
2 3 4 5
100