Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google analytics not blocked before consent #18

Open
HartLarsson opened this issue May 17, 2018 · 1 comment
Open

Google analytics not blocked before consent #18

HartLarsson opened this issue May 17, 2018 · 1 comment

Comments

@HartLarsson
Copy link

Installed Ginger latest version 4.1.6 but seems that cannot block Google analytics cookies at all (before the opt-in).

Site releases anyway in the client:
_ga
_gid

code used for GA:

<script async src="https://www.googletagmanager.com/gtag/js?id=UA-23774191-9"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-XXXXXX-XX', { 'anonymize_ip': true }); </script>

WP version 4.9.5
Chache plugins: WP Fastest Cache v 0.8.7.9 + Autoptimize v2.3.4
Theme: OceanWP

@HartLarsson HartLarsson changed the title Google analitics Google analytics not blocked before consent May 17, 2018
@massimomarazzi
Copy link

Hi Hart,
try to add "www.googletagmanager.com" into "custom js configuration" section. This block Tag Manager, and not run until user accept cookie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants