mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
Fix GA anonymizeIp order
This commit is contained in:
@@ -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>
|
||||||
|
@@ -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 }}
|
||||||
|
@@ -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>
|
||||||
|
Reference in New Issue
Block a user