Skip to content

Commit ff040ac

Browse files
committed
add GA
Signed-off-by: ArchFeh <archfeh@outlook.com>
1 parent a931cc2 commit ff040ac

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

config/_default/params.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ label_drafts = true # Add a label indicator next to the title of any built draft
1616
# Customize newsletter text
1717
newsletter_header = "PLCT Lab"
1818
newsletter_description = "This is my custom newsletter description that tells you why you should sign up."
19-
newsletter_submit = "Join now"
20-
global_newsletter = false # Enable newsletter site-wide
19+
newsletter_submit = "Subscribe"
20+
global_newsletter = true # Enable newsletter site-wide
2121

2222
# CSS / JavaScript
2323
enable_postcss = false # Enable if you're using npm and want to utilize PostCSS processing

data/consent.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
items:
2+
- title: Google Anaytics (functional)
3+
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.
4+
is_functional: true
5+
script_file: ga.js

static/js/ga.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<head>
2+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-1WLCFRCXQZ"></script>
3+
<script>
4+
window.dataLayer = window.dataLayer || [];
5+
function gtag(){dataLayer.push(arguments);}
6+
gtag('js', new Date());
7+
8+
gtag('config', 'G-1WLCFRCXQZ');
9+
</script>
10+
</head>

0 commit comments

Comments
 (0)