-
Implementing Cross-Domain Analytics for an Embedded iframe
“Hey, got a head-scratcher for you. I’m trying to link some events in an iframe back to the user source on the parent page, you know, whether they came in from Ads or whatever. Google says if I start up Google Analytics 4 in the iframe using the same client_id and session_id as the parent, it should recognize it as the same user. Well, it’s not working out that way. I’m getting a new user and session each time even though the _ga and ga cookie values are the same for the parent and iframe. I double checked and they’re definitely identical. This is the guide I followed: https://support.google.com/analytics/answer/10071811?hl=en#zippy=%2Cmanual-setup. Any idea what I could be doing wrong?”
Log in to reply.