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 -}} } {{ 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 -}} } 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 -}} } {{ 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 -}} }