Skip to main content

Hey all,

Currently having issue troubleshooting GTM. I’ve recently taken over the amplitude & GTM integration for our product (prev guy is unhelpful), but I’m having trouble getting new events into Amplitude.

 

We’re currently using this method: https://github.com/amplitude/GTM-Web-Demo to configure inside GTM but it doesn’t seem to be sending to amplitude. The events are firing when I use the GTM debugger, but it doesn’t seem to reach amplitude.

 

There are also existing events inside GTM that are not being sent, and these are not under the Govern blocked or hidden tab in Amplitude. Can anyone point me in the right direction?

 

 

Hey @KevDG ,

 

Non-dev here but also using GTM to send events to Amplitude so perhaps I can help. One question for clarity, are you able to confirm in DevTools that the SDK is loaded and initialized prior to the GTM requests?


Hey @KevDG ,

 

Non-dev here but also using GTM to send events to Amplitude so perhaps I can help. One question for clarity, are you able to confirm in DevTools that the SDK is loaded and initialized prior to the GTM requests?

It should be loading because existing events on GTM are still firing and being passed to amplitude with no problem and these new events are occurring on the exact same page as these existing events.


Hi @KevDG ! Welcome to the Amplitude Community! :wave:

Sorry to hear that you aren’t seeing your events logged in Amplitude. So to confirm, you have already checked the Deleted and Blocked sections in Govern to confirm that the new events are not listed there? Just wanted to confirm because usually if the tags were fired correctly under debugger mode but you don’t see the events in Amplitude, you may want to check your Deleted and Blocked sections in Govern - especially if your existing events on GTM are being passed to Amplitude with no problem and the events are on the exact same page. 

Another thought that came to mind is - is your website a SPA? If so, are you perhaps triggering the “sdk init” tag more than once? I remember working on a similar case before and that customer figured out the solution in which he was initializing the SDK multiple times per page transition which was causing problems because that’s not necessary in with a SPA. Perhaps this is a similar situation to yours?


Hi @KevDG ! Welcome to the Amplitude Community! :wave:

Sorry to hear that you aren’t seeing your events logged in Amplitude. So to confirm, you have already checked the Deleted and Blocked sections in Govern to confirm that the new events are not listed there? Just wanted to confirm because usually if the tags were fired correctly under debugger mode but you don’t see the events in Amplitude, you may want to check your Deleted and Blocked sections in Govern - especially if your existing events on GTM are being passed to Amplitude with no problem and the events are on the exact same page. 

Another thought that came to mind is - is your website a SPA? If so, are you perhaps triggering the “sdk init” tag more than once? I remember working on a similar case before and that customer figured out the solution in which he was initializing the SDK multiple times per page transition which was causing problems because that’s not necessary in with a SPA. Perhaps this is a similar situation to yours?



Yup, nothing appears in the Deleted or Blocked sections either nor are we a SPA.

But have since figured it out, there was an issue with the config in GTM!


Hi @KevDG ! Thanks for getting back to us and letting us know it was an issue with the config in GTM!

Any chance that the issue and the steps you took to resolve can be shared here on a public forum in case other Amplitude customers come across similar issue? All good if not! 


Hello @belinda.chiu I’m facing similar problem here, in debug mode on GTM I’m able to send events to Amplitude, but now that I publish my GTM tags I cannot get my Amplitude tag fired up. I checked the Deleted or Blocked section and I haven’t set anything there too. 

When i’m previewing my events using GTM preview mode I see when my tags fired and I received them within amplitude. This is the site: https://ara.com.mx/ in which Amplitude tags should be working using GTM Amplitude template.

Any other idea? :)


Hi @pdrocb ! Your issue does sound similar to @KevDG who seemed to have solved his issue through a config change in GTM. Perhaps he might be able to provide some insight on what he was able to fix in order to get the events flowing to Amplitude in live/non-debugger mode.

Otherwise, my other thought still stands - is your website a SPA? If so, are you perhaps triggering the “sdk init” tag more than once? I remember working on a similar case before and that customer figured out the solution in which he was initializing the SDK multiple times per page transition which was causing problems because that’s not necessary in with a SPA. Perhaps this is a similar situation to yours?


Reply