Skip to content

Commit

Permalink
google analytics & notice
Browse files Browse the repository at this point in the history
  • Loading branch information
neural-loop committed Dec 31, 2023
1 parent 84feb4b commit 547864e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ mastodon = "" # Your verification code
# cookies
# cookies module: https://github.com/gethugothemes/hugo-modules/tree/master/components/cookie-consent
[cookies]
enable = false
enable = true
expire_days = 60
content = "This site uses cookies. By continuing to use this website, you agree to their use."
content = "This site uses cookies & analytics. By continuing to use this website, you agree to their use."
button = "I Accept"

######################## sidebar widgets #########################
Expand Down
8 changes: 8 additions & 0 deletions themes/hugoplate/layouts/partials/essentials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@
{{/* template "_internal/google_analytics.html" . */}}
{{/* end */}}

<script async src="https://www.googletagmanager.com/gtag/js?id=G-WLX91Y92H4"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-WLX91Y92H4');
</script>

<!-- google tag manager -->
{{/* partialCached "gtm.html" . */}}
Expand Down

0 comments on commit 547864e

Please sign in to comment.