{{ if hugo.IsProduction }}
{{ if .Site.Config.Services.GoogleAnalytics.ID }}
{{ end }}
{{ if .Site.Params.googleTagManager }}
{{ end }}
{{ end }}
{{ if eq .Section "benchmarks" }}
{{ $benchmarksJs := resources.Get "/js/benchmarks/benchmarks.js" | minify | resources.Fingerprint "sha512" }}
{{ $filterChartJs := resources.Get "/js/benchmarks/benchmarks_filtered_search.js" | minify | resources.Fingerprint "sha512" }}
{{ end }}
{{ if in (slice "docs" "documentation" "articles") .Section }}
{{ $documentationJs := resources.Get "/js/documentation.js" | js.Build | minify | resources.Fingerprint "sha512" }}
{{ end }}
{{ if .Site.Params.segmentWriteKey }}
{{ $segmentJs := resources.Get "js/segment-setup.js" | js.Build (dict "params" (dict "segmentWriteKey" .Site.Params.segmentWriteKey "gaMeasurementId" .Site.Config.Services.GoogleAnalytics.ID)) | minify | resources.Fingerprint "sha512" }}
{{ end }}