Google Analytics blocked

New Member
6 0 0



I've added google analytics to the "backoffice" app we made (the page merchants see when they click the app from the Shopify dashboard)

Since shopify serves our page inside an iFrame google analytics has issues with access to cookies and isn't always firing.

I've set this setup when initialising google analytics:

cookie_flags: 'max-age=7200;secure;samesite=none'
This did help and I get events working on GA, but for some reason this doesn't work 100% of times. I don't know what the reason is but I see merchants working on my app (see the logs in my DB) but no events firing on GA.
Trying to fish for ideas on how to solve this.. anyone ran into this issue in the past?