summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-05-25 16:05:45 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-05-25 16:05:45 +0200
commit4ed1228d55aa33bc2b3c399fc592b6887e22df5e (patch)
treef8332d41962d8719903cf90bd06e9f70cc5091ff /tpl
parenta51945ea4b99d17501d73cf3367926683e4a4dfd (diff)
Fix GA anonymizeIp order
Diffstat (limited to 'tpl')
-rw-r--r--tpl/tplimpl/embedded/templates.autogen.go4
-rwxr-xr-xtpl/tplimpl/embedded/templates/google_analytics.html2
-rwxr-xr-xtpl/tplimpl/embedded/templates/google_analytics_async.html2
3 files changed, 4 insertions, 4 deletions
diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go
index db35f789a..41e33143c 100644
--- a/tpl/tplimpl/embedded/templates.autogen.go
+++ b/tpl/tplimpl/embedded/templates.autogen.go
@@ -123,8 +123,8 @@ if (!doNotTrack) {
{{ else }}
ga('create', '{{ . }}', 'auto');
{{ end -}}
+ {{ if $pc.AnonymizeIP }}ga('set', 'anonymizeIp', true);{{ end }}
ga('send', 'pageview');
- {{ if $pc.AnonymizeIP }}ga('set', 'anonymizeIp', true);{{ end -}}
}
</script>
{{ end }}
@@ -159,8 +159,8 @@ if (!doNotTrack) {
{{ else }}
ga('create', '{{ . }}', 'auto');
{{ end -}}
+ {{ if $pc.AnonymizeIP }}ga('set', 'anonymizeIp', true);{{ end }}
ga('send', 'pageview');
- {{ if $pc.AnonymizeIP }}ga('set', 'anonymizeIp', true);{{ end -}}
}
</script>
<script async src='//www.google-analytics.com/analytics.js'></script>
diff --git a/tpl/tplimpl/embedded/templates/google_analytics.html b/tpl/tplimpl/embedded/templates/google_analytics.html
index 429672a7e..08b60f45f 100755
--- a/tpl/tplimpl/embedded/templates/google_analytics.html
+++ b/tpl/tplimpl/embedded/templates/google_analytics.html
@@ -22,8 +22,8 @@ if (!doNotTrack) {
{{ else }}
ga('create', '{{ . }}', 'auto');
{{ end -}}
+ {{ if $pc.AnonymizeIP }}ga('set', 'anonymizeIp', true);{{ end }}
ga('send', 'pageview');
- {{ if $pc.AnonymizeIP }}ga('set', 'anonymizeIp', true);{{ end -}}
}
</script>
{{ end }}
diff --git a/tpl/tplimpl/embedded/templates/google_analytics_async.html b/tpl/tplimpl/embedded/templates/google_analytics_async.html
index 8fb746e0b..6a88ed855 100755
--- a/tpl/tplimpl/embedded/templates/google_analytics_async.html
+++ b/tpl/tplimpl/embedded/templates/google_analytics_async.html
@@ -19,8 +19,8 @@ if (!doNotTrack) {
{{ else }}
ga('create', '{{ . }}', 'auto');
{{ end -}}
+ {{ if $pc.AnonymizeIP }}ga('set', 'anonymizeIp', true);{{ end }}
ga('send', 'pageview');
- {{ if $pc.AnonymizeIP }}ga('set', 'anonymizeIp', true);{{ end -}}
}
</script>
<script async src='//www.google-analytics.com/analytics.js'></script>