{{ $ga := .Site.Params.marketing.google_analytics | default "" }}
{{ $gtm := .Site.Params.marketing.google_tag_manager | default "" }}

{{ if (in (slice (getenv "HUGO_ENV") hugo.Environment) "production") | and $ga | and (not $gtm) }}
{{ template "_internal/google_analytics_async.html" . }}
{{ end }}