yeapea
(Timon)
November 30, 2015, 11:14am
1
Hello,
we need to anonymize IPs in Germany for using Google Analytics. How I can activate this in admin settings?
For GA universal code:
ga('create', 'UA-XXXXXXX-X', 'website.de'); ga('set', 'anonymizeIp', true); ga('send', 'pageview');
For classic GA code:
_gaq.push(['_setAccount', 'UA-XXXXXXX-X']); _gaq.push(['_gat._anonymizeIp']); _gaq.push(['_trackPageview']);
Best regards
3 Likes
Paste in whatever custom Analytics JavaScript you need in Admin, Customize, HTML. Do not enable the included Analytics settings if you do that as it will conflict.
1 Like
sam
(Sam Saffron)
December 1, 2015, 4:29am
3
A tiny bit trickier, you need to follow this pattern:
Matomo is an open source analytics platform. Users can choose between self-hosting or paying for professional hosting in the cloud.
Matomo was formerly named Piwik. See Piwik is now Matomo - Announcement - Analytics Platform - Matomo for details about the name change.
You have to whitelist your Matomo-URL inside the Content-Security-Policy-Header. Search for the admin setting content_security_policy_script_src and add your domain (with https://) there
To enable Matomo ana…
Notice the PageTracker
stuff
1 Like