FYI
Google has renewed its GA code (see below). New rules on GDPR (AVG) will be introduced in May this year. If you do not ask your users consent to use Google Analytics on your site it is advisable to anonymize the IP addresses. Add the following to your GA script ...
, { 'anonymize_ip': true }
Google has renewed its GA code (see below). New rules on GDPR (AVG) will be introduced in May this year. If you do not ask your users consent to use Google Analytics on your site it is advisable to anonymize the IP addresses. Add the following to your GA script ...
, { 'anonymize_ip': true }
Code:
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-xxxxxxxx-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-xxxxxxxx-1', {'anonymize_ip': true});
</script>