Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [google-tag-manager]

The tag has no usage guidance.

33 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
1 answer
781 views

How to implement content security policy in magento 2

I want to know how to implement CSP on Magento 2 with GTM. The site has multiple stores. Tried to google but was unable to find any concrete result. Implimenting a Content Security Policy Magento 1....
insoftservice's user avatar
2 votes
2 answers
729 views

Google Tag Manager code doesnt appear in head

I am new to magento2 and I'm trying to install Google Tag Manager on our websites. I'm adding the js code in the scripts and styls sheets field under the HTML Head. This is how it should look in the ...
Teo's user avatar
  • 21
2 votes
1 answer
2k views

Magento 2 js library(Magento_Customer/js/customer-data) how to get custom product attributes in js

I've a little problem with an override of google tag manager in Magento 2 enterprise. google-analytics-universals.js have some function that trigger the events: addToCart, removeFromCart. To get the ...
Michele Lezzi's user avatar
2 votes
1 answer
879 views

Google Tag - Event snippet for sales conversion page

I am trying to implement a Google Tag from the PPC account of my clients. This code is on my sales conversion page. I believe I am along the right lines, but I'm not confident my PHP will pull in the ...
Grant Smith's user avatar
2 votes
1 answer
2k views

Modifying the dataLayer variables for e-commerce tracking with GTM

I'm using Google Tag Manager to track purchases on a Magento website. I've set up GTM through the Magento admin and every product related event is triggering fine (productDetails, addToCart, purchase ...
Clo's user avatar
  • 21
1 vote
0 answers
295 views

Google Analytics 4 vs Magento Open Source 2.4: GA4 / GTM ecommerce tracking

I am currently trying to set up ecommerce tracking for GA4 in Magento 2.4.5 (open source). Therefore I have set under Stores > Configuration > Sales > Google API at Google GTag / Google ...
Pixelrocker's user avatar
1 vote
1 answer
50 views

Trying To Install Tag Manager on 1.9 But It Won't Fire On Front End

I've been trying to get Tag Manager to fire on a client's Magento 1.9 website but it won't appear in the front end. I have placed it in the Config->General->Design->HTML Head/Footer->...
Gareth's user avatar
  • 11
1 vote
1 answer
749 views

How to push add to cart event in datalayer on magento widget

I'm using magento2.4.2 and added catalog widget in homepage.Need to add datalayer to addtocart event in MagentoCatalogWidgets. Note:Add to cart event for listing and detail pages are working perfectly
Jothi Subramanian's user avatar
1 vote
0 answers
522 views

How do WeltPixel Google TagManager extension works

I am using Magento 2.3.5-p2 In it, my team have installed the WeltPixel Google Tag Manager Extension (GTM) this extension is to make the process of GTM Implementation easier the way that the GTM works ...
Mohd Farhan Bin Ramli's user avatar
1 vote
1 answer
225 views

JavaScript url being stripped out of html

I have a very odd issue happening that I have been struggling with and can't find answer to. We have a 3rd party module to add GTM to the site and after doing a deploy the GTM is fine. After a ...
Trevor Orr's user avatar
1 vote
0 answers
50 views

Use JS + Simple SKU to lookup configurable sku

I'm setting up enhanced ecommerce tracking using GTM for our site & a problem I'm running into is product lists & product details output the config sku to the dataLayer but adds to cart, ...
ted_zarzeczny's user avatar
1 vote
2 answers
3k views

How to install Google TAG Manager in magento 1.9

How to install Google TAG Manager (GTM) to Magento 1.9.2 without extension?
P.k sameera chathuranga's user avatar
1 vote
1 answer
253 views

Magento 2, Google Tag Manager script in header creates display issue in cart page in IE browser

Throughout debugging I realized Google Tag Manager script in header leads to displaying extra text ---------Tracking code: Standard (Asynchronous) "Add To Car"------- in cart page as follow: Any clue ...
Zinat's user avatar
  • 2,069
1 vote
2 answers
2k views

Google Tag Manager enhanced ecommerce - Datalayers

I have setup enhanced ecommerce for my client. (batteribyen.dk). They use Magento Enterprise I followed this guide: https://docs.magento.com/m1/ee/user_guide/marketing/google-universal-analytics-...
MartinSoelberg's user avatar
0 votes
0 answers
19 views

Magento 2 : Block Google From Indexing the price in my store as its a b2b site

I have a b2b store running on Magento 2.4.4. I am trying to block google from indexing only the price from my product page! Is it even possible?
Amer Mansour's user avatar
0 votes
0 answers
16 views

How to fix Magento's built-in session management that conflict with how GTM handles sessions causing session regeneration issue

Anyone have this issue before, I notices even in a freshly installed magento 2.4.4p4 commerce edition this issue occur Let me know if this is the correct page to post this issue or I should post this ...
Mohd Farhan Bin Ramli's user avatar
0 votes
0 answers
20 views

Magento 2 : Punchout Store - Purchase Button Click GTM Tracking Not Working

I have setup button click Purchase event with data-layer in Magento 2 Punchout store. But when I click the button "Transfer Cart to Ariba" (Purchase button) event is not triggering in GTM. ...
Hiral's user avatar
  • 1
0 votes
0 answers
27 views

Magento 2.4.4p4 EE - GTM Session Regeneration on Every Page Load

I'm encountering a discrepancy between user/session activity and transaction count in Google Analytics (GA) for a Magento 2.4.4p4 Enterprise Edition project. The culprit seems to be frequent GTM ...
Mohd Farhan Bin Ramli's user avatar
0 votes
0 answers
132 views

Google tag manager on Magento2 - Double GTAG ID on my site

I'm facing a particular problem with google tag manager. In the error console the browser gives me this type of error: GET https://www.googletagmanager.com/gtag/js?id=G-1XXXXXXX&l=dataLayer&cx=...
Jackom's user avatar
  • 493
0 votes
0 answers
269 views

GTM event parameter for GA4 ecommerce purchase on Magento

I'm trying to setup GA4 ecommerce purchase via GTM, on my Magento ecommerce site. I have setup the ecommerce datalayer variables accordingly, but GA4 doesn't seem to capture the items purchased. ...
Steve Khong's user avatar
0 votes
1 answer
216 views

Google tag scripts are automatically getting removed from the Magento 2 website

I have added the gtag script in the Html Head section under the scripts and style sheets after saving it, I am not able to see it in the head section. only the commented part is appearing. The rest ...
Hybrid Developer's user avatar
0 votes
1 answer
77 views

Google tag manager crashes Magento 2.4.3-p2

I tried to integrate Google Tag Manager in M2.4.3-p2 with these instructions. Unfortunately this causes that all standard body classes of M2 (f.e. "catalog-category-view", "page-layout-...
user3631648's user avatar
0 votes
0 answers
49 views

$_SESSION that has been unset is saved back in magento with custom GTM (google tag manager) x GTM Weltpixel

I have some issue after add custom tag in GTM and setting configuration in magento by Weltpixel for GTM extension so, i have custom tag for tracking event login, logout, banner click, brand click, etc ...
Ismynr's user avatar
  • 111
0 votes
1 answer
9k views

How to add custom js script on the <head> tag in magento2

Hi here am trying to add a js script to the <head> tag, methods used Content => Design => Configuration, Now click on the edit link of the current theme and Go to the HTML Head tab and ...
Praveen Negimani's user avatar
0 votes
0 answers
652 views

Add extra data to Datalayer(GoogleTagManger) Magento2

I am working on GoogleTagManger module in my magento2.3.6. i want to add price, brand and its values to the existing productClick event. I tried the below steps in magento_catalog/product/list.phtml.. ...
Santhosh Kumar CA's user avatar
0 votes
0 answers
404 views

Magento 2 / GTM Issue

I'm sending data from my Magento 2 store into a GTM in order to track several aspects of the store. Everything was working just fine and all the required data was being sent ok, but for some unknown ...
Armindo Pereira's user avatar
0 votes
1 answer
179 views

Google Search Console and Magento Multistore

I have a multistore set up with an english domain.com/en_ca and french store domain.com/fr_ca, fr_ca and en_ca are added by Magento, by enabling the configuration Add Store Code to Urls to Yes. My ...
tarek fellah's user avatar
0 votes
1 answer
53 views

Add script in magento2

I want to measure add and remove products from the cart using tag manager Enhanced Ecommerce. I refered https://developers.google.com/tag-manager/enhanced-ecommerce#cart. How to add this script. ...
Mahi M's user avatar
  • 2,540
0 votes
1 answer
629 views

Magento 2.3.1 - Issue with script Google Tag Manager (GTM) in <HEAD>

I am trying to implement GTM in magento 2.3.1. But i could not able to make it successful. I have used the extension WeltPixel Extension to configure GTM to my site and manually method too but when ...
Erick Amoedo's user avatar
0 votes
1 answer
497 views

Adding Google Tag manager <noscript> tag after body tag

I need to place noscript tag of gtm just after closing body tag.
Mguru48's user avatar
0 votes
1 answer
101 views

Uppgrading from Classic GA to Global site tag via GTM in Magento 1.8

we are currently using Magento v1.8 and using the classic GA tracking. We have implement Google Tag manager and also upgraded to the new analytics using Global Site tag. However, the statistic that we ...
Confused's user avatar
0 votes
1 answer
370 views

Installed Google Tag Manager and added Custom HTML in GTM for Facebook Custom Chat but chat window won't show

Magento 1.9.3. Installed https://marketplace.magento.com/chapagain-chapagain-googletagmanager.html and it is working properly when viewed source code the GTM tag starts and ends immediately after ...
thebeardedguy's user avatar
0 votes
1 answer
488 views

Google Analytics Plus in Fooman using GTM not working

How to configure the Google Analytics Plus in magento 1.9.2.1? I'm uisng GTM to implement the Google Analytics code but it seem it doesn't track the E commerce Overview.
Jm Cabugnason's user avatar