Questions tagged [google-tag-manager]

Google Tag Manager (GTM) serves as a valuable tool for efficiently managing tags on your website or mobile application. This innovative solution automates the process of handling JavaScript code sequences responsible for transmitting crucial 'tags' to external parties. GTM boasts support for various tags, including those offered by leading platforms like Google and DoubleClick such as Google Analytics and DoubleClick Floodlight Sales. Additionally, it seamlessly integrates with designated 'Certified Vendor' tags, enhancing its functionality and versatility.

Unidentified googletagmanager detected in vendors segment

Recently, my ad blocker detected an unfamiliar Google Tag Manager request originating from a chunk provided by one of my vendors. Is it typical for tracking to be embedded in dependencies like this? And what type of information can be collected from my we ...

Troubleshooting the Speed Problem Between NextJs and GTM

After successfully integrating GTM into my NextJs project, I noticed a significant drop in my lighthouse performance score. Previously, I was scoring 96 but now I am only at 38. Is there a more efficient way to integrate GTM without negatively impacting th ...

Track how far visitors scroll into the inner content area using Google Tag Manager

Our website features a left-side vertical navigation menu. In order to measure scroll depth, we incorporated Tag Manager code. However, the Tag Manager code triggers on every page load due to us fixing the body scroll and implementing a custom scroll for t ...

Unfortunate escapement of characters discovered in variable that returns JSON image source

I am currently utilizing Google Tag Manager to incorporate the 'article' JSON markup and retrieve different variables for modifying specific sections on particular pages. Among the elements I am attempting to obtain is the image source. At present, I am u ...

Google Tag Manager (GTM) for Efficient Content Deployment

Hey there! Is there a way to make GTM execute as a singleton? I only need it to run once. Just to provide some more information, my application is a single page application (without URI change), and the content is loaded via Ajax. However, whenever the c ...

How can you specify the environment in Google Tag Manager?

I have integrated google tag manager and google analytics using the vue-gtm plugin found at vue-gtm Within google tag manager, I have set up 3 environments under the same container. In a user-defined variable called GA from environment, I have created a ...

The Google analytics script encountered issues loading on a page, resulting in a 500 error code

Encountering a persistent issue where the Google Analytics script fails to load with a 500 error code on the website, but interestingly works fine when opened in a new tab. After testing on MacOS BigSur using Chrome, Firefox, and Safari in both normal and ...

What is preventing the document title from updating in Google Analytics on React?

My process for initializing Google Tag Manager involved incorporating the following code snippet. import TagManager from 'react-gtm-module'; const tagManagerArgs = { gtmId: 'GTM-TLDWCL3' } TagManager.initialize(tagManagerArgs); To set the page title ...

Vue Google Tag Manager Error: This file type requires a specific loader to be handled correctly

I have integrated "@gtm-support/vue2-gtm": "^1.0.0" in one of my Vue-2 applications, with Vue versions as below: "vue": "^2.5.2", "vue-cookies": "^1.5.4", "vue-i18n": "^8.0.0", "vue-recaptcha": "^1.1.1", "vue-router": "^3.0.1", "vue-scrollto": "^2.17.1", " ...

Transferring User ID from Google Tag Manager to GA4 Problem

I'm currently working on a new project and adding some dummy data to the dataLayer of Google Tag Manager from the \_app.tsx file. <Script id="gtg" strategy="beforeInteractive"> { window.dataLayer = window.dataLayer || []; window ...

I am looking to create a unique JavaScript variable within my GTM container that will automatically return a value of true when the user approves sharing

Is there a way to trigger a tag when the user shares their location with the browser? I attempted using the following code within a custom JavaScript variable in my GTM Container, but it didn't seem to work. navigator.permissions && navigator.pe ...