Skip to content

Commit f827ad3

Browse files
committed
feat: added new Google Analytics 4 tag
1 parent 0d1f0a9 commit f827ad3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

_includes/analytics.pug

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ script
88
|
99
| gtag('config', 'UA-91551508-1');
1010

11+
12+
// New Google Analytics 4 tag
13+
|<!-- Google tag (gtag.js) -->
14+
|<script async src="https://www.googletagmanager.com/gtag/js?id=G-SNPLMVFB8V"></script>
15+
|<script>
16+
| window.dataLayer = window.dataLayer || [];
17+
| function gtag(){dataLayer.push(arguments);}
18+
| gtag('js', new Date());
19+
|
20+
| gtag('config', 'G-SNPLMVFB8V');
21+
|</script>
22+
1123
script
1224
|// From: https://support.google.com/analytics/answer/7478520?hl=en
1325
|/**

0 commit comments

Comments
 (0)