Skip to content

Commit

Permalink
add GA
Browse files Browse the repository at this point in the history
Signed-off-by: ArchFeh <archfeh@outlook.com>
  • Loading branch information
ArchFeh committed Jun 7, 2024
1 parent a931cc2 commit 025ee92
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ label_drafts = true # Add a label indicator next to the title of any built draft
# Customize newsletter text
newsletter_header = "PLCT Lab"
newsletter_description = "This is my custom newsletter description that tells you why you should sign up."
newsletter_submit = "Join now"
global_newsletter = false # Enable newsletter site-wide
newsletter_submit = "Subscribe"
global_newsletter = true # Enable newsletter site-wide

# CSS / JavaScript
enable_postcss = false # Enable if you're using npm and want to utilize PostCSS processing
Expand Down
5 changes: 5 additions & 0 deletions data/consent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
items:
- title: Google Anaytics (functional)
description: This code gives us insight into the number of people that visit our website, where they are from and what they are clicking on. We follow the guidelines of the Dutch Government, which describe how to use Google Analytics without requiring explicit consent.
is_functional: true
script_file: ga.js
9 changes: 9 additions & 0 deletions static/js/ga.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-1WLCFRCXQZ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-1WLCFRCXQZ');
</script>
2 changes: 1 addition & 1 deletion themes/hugo-liftoff

0 comments on commit 025ee92

Please sign in to comment.