u/Limpuls

Conversion attributes for cross-domain iFrame tracking

Hey all, so currently I'm trying to improve attribution for a purchase tracking that happens on another domain but through iFrame popup on my main domain. We are using 3rd party provider for checkout and while it allows to add our GA4 Measurement ID in provider's dashboard settings and Purchase event is fired browser side from their platform and arrives in GA4, I noticed that attribution is missing whether purchase happened from paid/social etc.

I added cross-domain settings in GA4 and listed provider domain name there. Also created Conversion Linker tag in GTM and added main domain and iFrame domain. Seems like after these changes gclid_aw cookie was being set on main domain and ahref for iFrame got some new URL that contains: ?_gl=1*1bgt7lz*_gcl_aw*R0NMLjE3NzY2NzI0OTQuOTk5OTk.*_gcl_au*MjcyODU3MTUxLjE3NzY2MzgxMjM.*_ga*MjY5NzI1MjUyLjE3NzY2MjIwNTI.*_ga_FMFG2MM934*czE3NzY2NzIzOTckbzMkZzEkdDE3NzY2NzI1MzMkajYwJGwwJGgw

But the moment I click on ahref button to open iFrame, the iFrame url doesn't get these new linker parameters attached to it. And not sure what is the way to make it work? And then the question is even if I managed to also add these params to iFrame url, since the event is fired from another domain which I don't have access to, would it even send these params to GA4 or not?

reddit.com
u/Limpuls — 1 day ago