-
Managing Multiple Tracker Events in GA4 on a Single Page
Hey folks, let me piggyback on this here – a story I’m continuing
So, here’s my tangle. I have a parent-website and a little widget. The widget’s got its spot on the stage. Both of them are being followed by a pair of these Google Analytics 4 trackers.
The lemonade stand (that’s the widget) is mine and I’ve arranged it so it knows who it sends the info to (“TRACKER_ID”) when I’m setting up GA4. But I’m not sure the parent site’s got that kind of detail in the settings for gtag. And that’s throwing a bit of sand in the machine here because every time the parent hollers, the widget’s GA4 gets the echo, every little event. Sure, those noises can be sifted out on the reports in Google Analytics, but my client doesn’t want to mess with that. They’re more for a clean-cut, no-fuss kind of accounting. This makes me wonder – is there an early filter we can use before the chatter gets to the widget’s GA4. I’m already thinking about putting the widget in an iframe, but are there other escape routes?
I tried to get a service worker onboard my widget react app, thinking I could flag down the fetch requests to Google Analytics, muffle them or boot them out. But turns out, these aren’t your regular fetch quests, but more like a ping maneuver for shooting the juicy bits to GA…
Any ideas, compadres?
Log in to reply.