-
My GA4 events stopped sending after I added GTM to my website
Alright, let me lay it out here. We’ve got this Single Page Application (SPA) using a hardcoded GA4 tag. We’ve been doing a pretty cool job of sending custom events using the
window.gtag('event', eventName, {...})
setup, with tons of these events baked right into our code.Not too long ago, we added GTM to the mix to tag on some other 3rd party tags. Yet, we decided to keep GA4 doing its own thing, outside GTM. Didn’t want to mess with rearranging our custom events on the GTM dashboard, you know? Why fix what ain’t broken!
But here’s the kicker: Ever since GTM joined the party, our GA4 custom events have gone AWOL on our GA4 dashboard. They’re not showing up on the GTM dashboard either. Even tried playing nice and adding the GA4 tag onto GTM – no dice!
What I need to know now is: is there any way to have both GTM & GA4 playing nice, carrying on separately, while my GA4 custom events (
gtag('event', ...)
) are still collected?Side note: If advised, I’m okay with removing the hardcoded GA4 tag from my code and shifting it onto GTM. Obviously, I’d want to keep using my
gtag
events and not have to redo all that work on the GTM UI.And hey, sorry if I’m a bit off in asking this. Still finding my way around GA.
Log in to reply.