Skip to content

Commit ab7379d

Browse files
authored
feat: add GA (#6)
1 parent ba0908f commit ab7379d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
/data/
44
/node_modules/
55
/tmp
6+
7+
.idea

layouts/partials/hooks/head-end.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,11 @@
1414
{{ else if in .RelPermalink "/docs/" -}}
1515
<link rel="canonical" href="{{ .RelPermalink | absURL}}"/>
1616
{{- end}}
17+
<!-- Google tag (gtag.js) -->
18+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SJLS2F2J2B"></script>
19+
<script>
20+
window.dataLayer = window.dataLayer || [];
21+
function gtag(){dataLayer.push(arguments);}
22+
gtag('js', new Date());
23+
gtag('config', 'G-SJLS2F2J2B');
24+
</script>

0 commit comments

Comments
 (0)