Skip to content

Commit 5ad248e

Browse files
committed
feat: Added Google Analytics
1 parent 18b1f02 commit 5ad248e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

templates/head.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
<head>
2+
<!-- Apparently GTag has to be first thing after the head tag... hmmm-->
3+
<!-- Global site tag (gtag.js) - Google Analytics -->
4+
<script
5+
async
6+
src="https://www.googletagmanager.com/gtag/js?id=G-MNE4SWQ0L0"
7+
></script>
8+
<script>
9+
window.dataLayer = window.dataLayer || [];
10+
function gtag() {
11+
dataLayer.push(arguments);
12+
}
13+
gtag("js", new Date());
14+
15+
gtag("config", "G-MNE4SWQ0L0");
16+
</script>
17+
218
<meta charset="utf-8" />
319

420
<title>ripixel | {page}</title>

0 commit comments

Comments
 (0)