mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Fix GA anonymizeIp order
This commit is contained in:
parent
a51945ea4b
commit
4ed1228d55
3 changed files with 4 additions and 4 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue