Add anonymizeIP to GA privacy config

See #4751
This commit is contained in:
Bjørn Erik Pedersen
2018-05-25 10:53:39 +02:00
parent ffcf26e68c
commit 1f1d955b56
7 changed files with 30 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ if (!doNotTrack) {
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', '{{ . }}', 'auto');
ga('send', 'pageview');
{{ if $pc.AnonymizeIP }}ga('set', 'anonymizeIp', true);{{ end -}}
}
</script>
{{ end }}