Permalink
Browse files

tpl/tplimpl: Adjust GA templates

See #4616
  • Loading branch information...
bep committed May 21, 2018
1 parent 6789207 commit f45b522ebffafc61a3cb9b694bc3542747c73e07
@@ -99,7 +99,7 @@ var EmbeddedTemplates = [][2]string{
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>{{end}}
{{- end -}}`},
{`google_analytics.html`, `{{- $pc := .Page.Site.PrivacyConfig.GoogleAnalytics -}}
{`google_analytics.html`, `{{- $pc := .Site.PrivacyConfig.GoogleAnalytics -}}
{{- if not $pc.Disable -}}
{{ with .Site.GoogleAnalytics }}
<script>
@@ -113,7 +113,7 @@ ga('send', 'pageview');
</script>
{{ end }}
{{- end -}}`},
{`google_analytics_async.html`, `{{- $pc := .Page.Site.PrivacyConfig.GoogleAnalytics -}}
{`google_analytics_async.html`, `{{- $pc := .Site.PrivacyConfig.GoogleAnalytics -}}
{{- if not $pc.Disable -}}
{{ with .Site.GoogleAnalytics }}
<script>
@@ -1,4 +1,4 @@
{{- $pc := .Page.Site.PrivacyConfig.GoogleAnalytics -}}
{{- $pc := .Site.PrivacyConfig.GoogleAnalytics -}}
{{- if not $pc.Disable -}}
{{ with .Site.GoogleAnalytics }}
<script>
@@ -1,4 +1,4 @@
{{- $pc := .Page.Site.PrivacyConfig.GoogleAnalytics -}}
{{- $pc := .Site.PrivacyConfig.GoogleAnalytics -}}
{{- if not $pc.Disable -}}
{{ with .Site.GoogleAnalytics }}
<script>

0 comments on commit f45b522

Please sign in to comment.