-
Solving Safari ITP's Impact on Google Analytics in iframe scenarios
Hey there, I need a bit of help with Google Analytics in Safari. So, here’s the deal: I’ve got my application running in an iframe from ‘https://iframe-domain.com’, which is embedded on my main site ‘https://parent-domain.com’. I managed to set up Google Analytics and Google Tag Manager using the configuration ‘cookie_flags: max-age=7200;secure;samesite=’. It’s working well across various browsers, but Safari is being a bit troublesome. I’ve found out that Safari’s Intelligent Tracking Prevention (ITP) is blocking Google Analytics. More specifically, it seems to be hindering the third-party cookies due to the cross-origin iframe. This is something I’ve encountered in mobile Safari specifically, I’m still unsure about desktop Safari. I’m using GA version 4. Do you have any workaround for this? I really don’t want to lose all the analytics data from my Safari users.
Log in to reply.