Place a script immediately after the opening <body> tag

I would like to place a Google tag manager script and according to Google Tag documentation, the script should be placed immediately after the opening tag. Since we cannot change the source code,...

Using "Google Tag Manager" with "Google Sites"

I'm trying to use Google Tag Manager for a site created using Google Sites, but I haven't had any luck so far. This question seems to have been up on a few forums, but I was not able to find any...

Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener

I have been struggling at successfully implementing openId in spring from last 3 weeks now. Please help me out with it. I tried to implement it from...

Android Google Tag Manager does not work

I'm having trouble while implemented the new google tag manager lib. Here is what I did: I create a macro dataleyr I set a rule for an event I create a tag and set the universal analytics ID on...

How can I test Google Tag manager locally

I have created a GTM container, added tags under it and published. its in debug mod and I can see datalayer but for tags, says there are not tags in container even though tags are there in...

Why is GTM merging object values in dataLayer?

I have the following code: dataLayer.push({event: 'A',eventAttributes: { attrA: 'a' }}); dataLayer.push({event: 'B',eventAttributes: { attrB: 'b' }}); dataLayer.push({event:...

jQuery functionality wont work when GTM code is added

My JavaScript is as follows in separate js file. It works fine: $( document ).on( 'customEvent1', viewportAdjust ).on( 'customEvent2', function( e1, param2 ) { // code logic here }) but, when...

Firebase cloud messaging notification not received by device

I am having an issue with FireBase Cloud Messaging in which I get the Token from the device and send the notification test through the Google Firebase notification console however, the...

Fire GTM tag only if on homepage of the site

The homepage can also have extra GET params (e.g. utm tags and similar marketing variables). How can I make it work? Simple "end with http://example.com or http://example.com/" doesn't work cause...

How to use local docker images with Minikube?

I have several docker images that I want to use with minikube. I don't want to first have to upload and then download the same image instead of just using the local image directly. How do I do...

Could not find public_suffix-2.0.4 in any of the sources

It started when I tried to add the Google Tag Manager Gem to my local installation of Jekyll. A little background here, I'm using homebrew and rbenv. My ruby version is 2.4.1 or at least I think...

How to track pageviews on React

So basically the problem i have is that my site is using reactjs so it doesn't reload and i need to detect the change on the URL in order to send a new pageview to Google Analytics. Has anyone...

Can anyone help implementing Nuxt.js Google Tag Manager?

Hey i've built a Nuxt app and am having trouble with the package @nuxtjs/google-tag-manager package. Found below. The documentation is pretty light and I haven't found many example implementations...

Emulators can't load "libGLES_emulation" driver

I am in the process of setting up FirebaseUI using Google's guide but I suddenly got an error I can't seem to find a solution for. I'm pretty sure it has to do with my gradle, because I've tried...

Code in Google Tag Manager only working in debug/preview mode

I have written some code that needs to get triggered by Google Tag Manager. Basically, it injects some HTML elements in a page and displays a popup, after a couple of seconds. The behaviour as it...

GA implemented through GTM showing incorrect bounce rate on SPA

I implemented GA through GTM on this website. To make sure the setup is correct, I also connected Heap & Segment (Segment sends data to a different GA property than the GA property GTM sends data...

Google tag manager conversion value undefined

I use Google Tag Manager with Google Ads and try to track conversions. I can't record the conversion value from a datalayer. Can you help me? My setting attached.

Can´t save data into Firebase

I'm trying to save into my Firebase database but I unable to do it. Right after the app intitialize the serive is disconected, but the app don't crash. I able to switch between the pages, but...

After Starting to use Google Funding Choices, site is handing out a weird "FCCDCF" cookie that breaks other sites

For advertising consent management we're looking at starting to use Google Funding Choices, but have found that the Funding Choices tag results in a weird cookie named "FCCDCF" being handed to the...

Using Google Tag Manager with Google Analytics to track a Chrome Extension (2020)

I am working on a chrome extension, and I would like to be able to track metrics with google analytics. I believe the easiest way to do that would be through tag manager, and I have found this...

Multiple Google Analytics gtag tracking IDs on same page

I have two property tracking IDs in my Google Analytics account for the same website. I basically want to have the same set of data inserted into both properties/views. Currently, this is how I...

Failed to execute 'createPolicy' on 'TrustedTypePolicyFactory': Policy "goog#html" disallowed

If I run the GoogleTagManager with CSP I get the following error Failed to execute 'createPolicy' on 'TrustedTypePolicyFactory': Policy "goog#html" disallowed. My header script looks like...

How to send Page View Event to Google Tag Manager in Angular

Until now, I was using Google Analytics directly and I was firing Page View Event manually with JavaScript from app.component.ts, like this: declare var gtag: Function; ... constructor(private...

GTM: Click Element Trigger not firing

I can't understand why my triger is not firing. Does anyone know how to fix it? I have couple elements on pages that contains span.sharing__icon in Click Element so I want to use single trigger...

cookiebot in google tag manager with consent mode

I am trying to implement the Cookiebot CMP using Google Tag Manager and Google's Consent Mode. I followed the tutorial on...

Reduce unused JavaScript from GTM script

As stated in the Google Tag Manager docs, I include the GTM JavaScript inside the <head> tag of my Next.js site like so: // pages/_app.js return ( <> <Head> <script...

No analytics cookies is set upon a consent was updated

I am using the Google Tag Manager with a single tag referencing a default Google Analytics script. My solution is based on the information from these...

clarity.js by Microsoft slowing overall page loads

I have a customer using bing tracking via https://bat.bing.com/bat.js. On December, 6th 2021 it started calling in clarity.js without the customer making any changes to their code. This slowed the...

Migrating a Create React App (Webpack) to NX and Vite - URI malformed at decodeURI

This is going to be a tricky one because there's a lot going on in here. Therefore, I'll try to be as succinct as possible not to overload you with too much information. I'm currently in the...

How to solve the Conversion Tag Error : net::ERR_ABORTED

I'm using Google Tag Manager to set a Google Ads conversion tag in my website. When I was debugging using the Tag Assistant window from GTM, my conversion tag was fired successful. When I opened...