escopecz / grav-ganalytics

Google Analytics plugin for Grav CMS
MIT License
20 stars 9 forks source link

Implement gaOptout() function #14

Closed carlu93 closed 4 years ago

carlu93 commented 7 years ago

Hi, thanks for the awesome plugin! :) I'm just missing one little feature. In Germany we have to make sure the users can opt-out of GA. In my understanding there has to be a function implemented in the GA Code. Something like this: function gaOptout() { document.cookie = disableStr + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/'; window[disableStr] = true; }

Could you implement this for the plugin? Or am I missing something and this is already implemented? Thanks a lot!

TheMokke commented 6 years ago

Hi, from me too - thanks for this grav plugin. :) But sadly I am also missing the gaOptout feature.

Is is elementary for European users because of the new General Data Protection Regulation in Europe.

Please see https://webgilde.com/en/analytics-opt-out/ for the requirements.

escopecz commented 4 years ago

Implemented in https://github.com/escopecz/grav-ganalytics/pull/20, will be released soon.