{{ with site.Params.features.analytics }} {{ if .enabled }} {{ with .services }} {{ with .google }} {{ $privacyConfig:= dict (slice "Site" "Config" "Privacy" "GoogleAnalytics") $.Site.Config.Privacy.GoogleAnalytics }} {{ $analyticsConfig := dict (slice "Site" "GoogleAnalytics") .id }} {{ template "_internal/google_analytics.html" (merge $privacyConfig $analyticsConfig) }} {{ end }} {{ with .counterDev }} {{ end }} {{ with .goatCounter }} {{ end }} {{ with .matomo }} {{ end }} {{ end }} {{ end }} {{ end }} {{ if site.GoogleAnalytics }} {{ template "_internal/google_analytics.html" . }} {{ end }}