hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 4ed1228d55aa33bc2b3c399fc592b6887e22df5e
parent a51945ea4b99d17501d73cf3367926683e4a4dfd
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Fri, 25 May 2018 16:05:45 +0200

Fix GA anonymizeIp order

Diffstat:
Mtpl/tplimpl/embedded/templates.autogen.go | 4++--
Mtpl/tplimpl/embedded/templates/google_analytics.html | 2+-
Mtpl/tplimpl/embedded/templates/google_analytics_async.html | 2+-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git 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
@@ -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
@@ -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>