How to anonymize Google Analytics?

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개의 좋아요

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개의 좋아요

A tiny bit trickier, you need to follow this pattern:

Notice the PageTracker stuff

1개의 좋아요