Questions tagged [google-tag-manager]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
20 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-...
2 votes
1 answer
41 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 ...
  • 21
0 votes
0 answers
48 views

how to add google tag in Magento Open Mage LTS

how could I add Google Tag manager to Magento Open Mage LTS? Where exactly would I need to add the code from Google? Thanks in advance.
1 vote
1 answer
211 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
0 votes
0 answers
84 views

Magento 2.4 tag manager events don’t fire

We are using Magento 2.4.4 EE and the core tag manager module. It’s mostly working but the enhanced e-commerce events aren’t firing, like the addtocart event. Gtm is otherwise working as expected. ...
0 votes
0 answers
58 views

Magento CE 2.4.3 | Google Universal Analytics not receiving hits occasionally | Big click-users-sessions discrepancy for traffic from Google Ads

We set up website tracking using Welt Pixel extension for Google Tag Manager - set everything up as per documentation - exported JSON file and configured Tag Manager - but for some reason tracking ...
0 votes
0 answers
22 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 ...
  • 111
0 votes
2 answers
74 views

Search through magento admin panel to see which script are loaded where

I am using magento2.3.5-p2 Community Edition I am having a problem on finding the location of certain code, I have tried templatehints, search using grep and find all contents in file but to no avail ...
1 vote
0 answers
267 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 ...
0 votes
1 answer
2k 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 ...
1 vote
3 answers
201 views

How can I Add Google Tag Manager to Magento 2?

I want to add (GTM) google tag manager in my Magento 2 store, but without installing any extension. Please help me out that how I can add CTM manually.
0 votes
0 answers
184 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.. ...
0 votes
0 answers
93 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 ...
0 votes
0 answers
251 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 ...
0 votes
1 answer
219 views

Google Tag Manager Advanced Data Layer Integration

I am using the https://github.com/magepal/magento2-google-tag-manager extension for GTM Data Layer integration. But unfortunately I am not able to capture data on Google Analytics. I have just ...
0 votes
1 answer
74 views

How to retrieve the SKU of the first simple product for a configurable product

I am trying to retrieve the SKU of the first simple product of configurable product as soon as a certain SKU type is found to be "configurable" type. The code below helps find out if the main SKU is ...
2 votes
1 answer
1k 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 ...
0 votes
1 answer
136 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 ...
1 vote
0 answers
38 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, ...
1 vote
1 answer
388 views

Google Analytics not collecting ecommerce session data

When I go to the Google Analytics ecommerce shopping behavior report for a Magento 2 website, there is not data displayed for: Sessions with Product Views Sessions with Add to Basket Sessions with ...
  • 4,713
0 votes
1 answer
42 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. ...
  • 2,520
0 votes
1 answer
479 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 ...
0 votes
1 answer
882 views

Account type not visible in Google API> Google Analytics configuration page Magento 2

I'm trying to set up Universal Analytics through Google Tag Manager in Magento 2.3.2. I follow the official doc, or other tutorials, but in my backend, when I go to Store>Sales>Google API>...
0 votes
1 answer
618 views

Magento 2 How to exclude Head Miscellaneous Scripts section from deferred?

I am using a free extension for defer javascript Magento 2 Defer Parsing of JavaScript, which is working fine. But when I am adding Miscellaneous Scripts in magento admin from head section which is ...
  • 1,975
4 votes
1 answer
598 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....
0 votes
1 answer
323 views

Adding Google Tag manager <noscript> tag after body tag

I need to place noscript tag of gtm just after closing body tag.
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?
0 votes
1 answer
95 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 ...
1 vote
1 answer
183 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 ...
  • 2,009
2 votes
1 answer
785 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 ...
0 votes
1 answer
202 views

Enhanced Ecommere GTM - GA in Magento 1.9.x [closed]

Could you recommend me how to develop an enhanced e-commerce for Magento 1.9.x? I think having an enhanced e-commerce with Google analytics is very good.
  • 31
0 votes
1 answer
329 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 ...
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-...
1 vote
1 answer
38 views

How resource intensive is it to get customer data?

I have created a data layer for google tag manager purposes. Currently, it is being loaded on every page. I am concerned about it increasing the pages load time. For example, I'm looping through ...
0 votes
1 answer
284 views

Google TAG MANAGER extension impossible located [closed]

I have installed via composer extension Google Tag Manager from Yireo: https://www.yireo.com/software/magento-extensions/googletagmanager2 After install I have enable module (on below screenshot can ...
  • 2,136
2 votes
3 answers
3k views

Google tag manager: Magento-2

According to this guide http://docs.magento.com/m2/ee/user_guide/marketing/google-tag-manager.html there should be some options in magento2 2.2.2 to choose google tag manager instead of just google ...
  • 105
0 votes
1 answer
2k views

Magento remarketing tag

I have a magento remarketing tag but I can not configure it correctly. I have the following parameters: var google_tag_params = { ecomm_prodid: 'REPLACE_WITH_VALUE', ecomm_pagetype: '...
2 votes
1 answer
1k 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 ...
  • 21
1 vote
5 answers
6k views

Add google tag manager code inside head and body

I have a question regarding magento. I would like to know where the head and body are located. I want to do this because i would like to add a Google tag manager code inside it. I can somehow not seem ...
  • 13
2 votes
3 answers
11k views

How to install Google TAG Manager (GTM) to Magento 1.9.2 without extension?

After creating an account at Google TAG Manager (GTM), it gives 2 pieces of code to add immediatly after <head> tag and another immediatly after <body> tag. The “HTML Head” – “...
  • 37
0 votes
1 answer
505 views

After enabling Google Tag Manager, Paypal Express checkout breaks

When going through the one step checkout process, Paypal Express is encountering an error where the page is not being properly redirected. By debugging into opcheckout.js, in the function ...
  • 1,147
0 votes
1 answer
480 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.
3 votes
7 answers
27k views

Add Google Tag Manager to Magento 2?

I'm using magento 2 and I'm trying to add the Google Tag Manager code (noscript and script parts) to my magento 2 installation , what's the best way to do it ? I found this module to do it https://...
  • 1,457
3 votes
3 answers
4k views

Google Tag Manager conversions not reporting with built-in Magento Enterprise 1.14.2 GTM Package

I'm having an issue with the built-in GTM support in 1.14.2+. We have enabled the GTM support We have input the correct GTM container ID We have enabled Enhanced Ecommerce in the Google Analytics ...
  • 35.7k