Skip to content

Commit

Permalink
feat: add PP default
Browse files Browse the repository at this point in the history
  • Loading branch information
gcushen committed Jan 16, 2024
1 parent d9af47c commit 51d09b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{{ if hugo.IsProduction | and $ga }}

{{ $gtag_config := cond site.Params.features.privacy_pack.enable "{ 'anonymize_ip': true }" "{}" }}
{{ $gtag_config := cond (site.Params.features.privacy_pack.enable | default false) "{ 'anonymize_ip': true }" "{}" }}
<script async src="https://www.googletagmanager.com/gtag/js?id={{$ga}}"></script>
<script>
window.dataLayer = window.dataLayer || [];
Expand Down

0 comments on commit 51d09b0

Please sign in to comment.