Skip to content

Commit

Permalink
Updated google tag
Browse files Browse the repository at this point in the history
  • Loading branch information
spolischook committed Sep 24, 2024
1 parent 4d78161 commit 0bcafae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/_default/params.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
shopifyDomain: 'cherevan.myshopify.com'
storefrontAccessToken: '7a50a69f807ec31535e5a23ba3189fee'
GoogleContainerID: 'GTM-TK4NCM7C'
supportedImageThumbnails:
- jpeg
- png
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/gtag.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
});
</script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ GoogleTagID }}">
<script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.Params.GoogleContainerID }}">
</script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }

gtag('js', new Date());
gtag('config', GoogleContainerID);
gtag('config', {{ .Site.Params.GoogleContainerID }});
</script>

<!-- Create one update function for each consent parameter -->
Expand Down

0 comments on commit 0bcafae

Please sign in to comment.