Fix GA anonymizeIp order

This commit is contained in:
Bjørn Erik Pedersen 2018-05-25 16:05:45 +02:00
parent a51945ea4b
commit 4ed1228d55
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
3 changed files with 4 additions and 4 deletions

View file

@ -123,8 +123,8 @@ if (!doNotTrack) {
{{ else }} {{ else }}
ga('create', '{{ . }}', 'auto'); ga('create', '{{ . }}', 'auto');
{{ end -}} {{ end -}}
{{ if $pc.AnonymizeIP }}ga('set', 'anonymizeIp', true);{{ end }}
ga('send', 'pageview'); ga('send', 'pageview');
{{ if $pc.AnonymizeIP }}ga('set', 'anonymizeIp', true);{{ end -}}
} }
</script> </script>
{{ end }} {{ end }}
@ -159,8 +159,8 @@ if (!doNotTrack) {
{{ else }} {{ else }}
ga('create', '{{ . }}', 'auto'); ga('create', '{{ . }}', 'auto');
{{ end -}} {{ end -}}
{{ if $pc.AnonymizeIP }}ga('set', 'anonymizeIp', true);{{ end }}
ga('send', 'pageview'); ga('send', 'pageview');
{{ if $pc.AnonymizeIP }}ga('set', 'anonymizeIp', true);{{ end -}}
} }
</script> </script>
<script async src='//www.google-analytics.com/analytics.js'></script> <script async src='//www.google-analytics.com/analytics.js'></script>

View file

@ -22,8 +22,8 @@ if (!doNotTrack) {
{{ else }} {{ else }}
ga('create', '{{ . }}', 'auto'); ga('create', '{{ . }}', 'auto');
{{ end -}} {{ end -}}
{{ if $pc.AnonymizeIP }}ga('set', 'anonymizeIp', true);{{ end }}
ga('send', 'pageview'); ga('send', 'pageview');
{{ if $pc.AnonymizeIP }}ga('set', 'anonymizeIp', true);{{ end -}}
} }
</script> </script>
{{ end }} {{ end }}

View file

@ -19,8 +19,8 @@ if (!doNotTrack) {
{{ else }} {{ else }}
ga('create', '{{ . }}', 'auto'); ga('create', '{{ . }}', 'auto');
{{ end -}} {{ end -}}
{{ if $pc.AnonymizeIP }}ga('set', 'anonymizeIp', true);{{ end }}
ga('send', 'pageview'); ga('send', 'pageview');
{{ if $pc.AnonymizeIP }}ga('set', 'anonymizeIp', true);{{ end -}}
} }
</script> </script>
<script async src='//www.google-analytics.com/analytics.js'></script> <script async src='//www.google-analytics.com/analytics.js'></script>