Skip to content

Commit

Permalink
Fix passing google analytics id
Browse files Browse the repository at this point in the history
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
  • Loading branch information
hossainemruz committed May 10, 2024
1 parent a3213b4 commit ae16a0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/analytics.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!-- Google Analytics -->
{{ with .google }}
{{ $privacyConfig:= dict (slice "Site" "Config" "Privacy" "GoogleAnalytics") $.Site.Config.Privacy.GoogleAnalytics }}
{{ $analyticsConfig := dict (slice "Site" "GoogleAnalytics") .id }}
{{ $analyticsConfig := dict (slice "Site" "Config" "Services" "GoogleAnalytics" "ID") .id }}
{{ template "_internal/google_analytics.html" (merge $privacyConfig $analyticsConfig) }}
{{ end }}

Expand Down

0 comments on commit ae16a0b

Please sign in to comment.