Has anyone found a solution to this?
I understand you can enable Google Analytics in two ways in Shopify:
-
Specify Google Analytics ID in Online Store / Preferences / Google Analytics section in Shopify Admin.
-
Inject Google Analytics tracking code into your theme source code.
Both ways have their advantages and disadvantages, but it seems like none of them will solve the issue with GDPR in full.
If you decide to go for the first option, it is not clear how to disable Google Analytics AT CHECKOUT if a user didn’t opt-in for GA (you can still disable GA on all other pages by setting window[‘ga-disable-UA-XXXXX-Y’] = true as described here: https://developers.google.com/analytics/devguides/collection/analyticsjs/user-opt-out).
If you go for the second option, then you’ll have to enable things like Google Enhanced Ecommerce manually in your javascript code, and in addition to that you won’t be able to track user’s behaviour at checkout even if user’s consent to do that has been received properly, as you don’t have an access to checkout source code on regular Shopify tariffs (you need to be on a Shopify Plus to be able to do that).