Skip to content

Commit

Permalink
feat: add GA (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisthat authored Jul 17, 2023
1 parent ba0908f commit ab7379d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
/data/
/node_modules/
/tmp

.idea
8 changes: 8 additions & 0 deletions layouts/partials/hooks/head-end.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@
{{ else if in .RelPermalink "/docs/" -}}
<link rel="canonical" href="{{ .RelPermalink | absURL}}"/>
{{- end}}
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SJLS2F2J2B"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-SJLS2F2J2B');
</script>

0 comments on commit ab7379d

Please sign in to comment.