summaryrefslogtreecommitdiffstats
path: root/tpl/tplimpl/embedded/templates/google_analytics_async.html
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-05-25 10:53:39 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-05-25 10:53:39 +0200
commit1f1d955b56471e41d5288c57f1ef8333dc297120 (patch)
tree62861fc8be43b2be7790ef868632dc073c6d2840 /tpl/tplimpl/embedded/templates/google_analytics_async.html
parentffcf26e68cac843f8b257ee72f0282f405ad04a8 (diff)
Add anonymizeIP to GA privacy config
See #4751
Diffstat (limited to 'tpl/tplimpl/embedded/templates/google_analytics_async.html')
-rwxr-xr-xtpl/tplimpl/embedded/templates/google_analytics_async.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/tpl/tplimpl/embedded/templates/google_analytics_async.html b/tpl/tplimpl/embedded/templates/google_analytics_async.html
index b81ade025..18e18a168 100755
--- a/tpl/tplimpl/embedded/templates/google_analytics_async.html
+++ b/tpl/tplimpl/embedded/templates/google_analytics_async.html
@@ -7,6 +7,7 @@ if (!doNotTrack) {
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', '{{ . }}', 'auto');
ga('send', 'pageview');
+ {{ if $pc.AnonymizeIP }}ga('set', 'anonymizeIp', true);{{ end -}}
}
</script>
<script async src='//www.google-analytics.com/analytics.js'></script>