fix: build
parent
2c4ffebc79
commit
ed910b7427
|
@ -39,13 +39,3 @@
|
|||
{{ end -}}
|
||||
|
||||
{{ partial "hooks/head-end.html" . -}}
|
||||
|
||||
{{/* To comply with GDPR, cookie consent scripts places in head-end must execute before Google Analytics is enabled */ -}}
|
||||
{{ if hugo.IsProduction -}}
|
||||
{{ $enableGtagForUniversalAnalytics := not .Site.Params.disableGtagForUniversalAnalytics -}}
|
||||
{{ if (or $enableGtagForUniversalAnalytics (hasPrefix .Site.GoogleAnalytics "G-")) -}}
|
||||
{{ template "_internal/google_analytics_gtag.html" . -}}
|
||||
{{ else -}}
|
||||
{{ template "_internal/google_analytics_async.html" . -}}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
|
|
Loading…
Reference in New Issue