nystudio107 / craft-instantanalytics

DEPRECATED: Instant Analytics brings full Google Analytics support to your Twig templates and automatic Craft Commerce integration with Google Enhanced Ecommerce.
https://nystudio107.com/
Other
20 stars 9 forks source link

Cookies consent - Is it possible to turn off Instant Analytics until the user has accepted to be tracked? #51

Open ragnarfrosti opened 3 years ago

ragnarfrosti commented 3 years ago

This is more of a question rather than an issue.

We are implementing Cookies consent in many of our clients projects and I'm wondering if Instant Analytics has any built in support for this or if it is possible to hook in to prevent data being sent to Google until the User has accepted being tracked?

If it's not possible at the moment then maybe you could build in an event before send any data to Google to hook in an set and send variable to true/false? :)