Skip to content

Commit

Permalink
Add Google tag for analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmicetic committed Jul 23, 2024
1 parent e40b1db commit e3d868a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions _includes/analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-G3BQK7PF1V"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-G3BQK7PF1V');
</script>
2 changes: 2 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@
<script src="{{ 'assets/js/bootstrap.bundle.min.js' | relative_url }}"></script>
<script src="{{ 'assets/js/toc.js' | relative_url }}"></script>
<script defer src="{{'assets/js/all.min.js' | relative_url }}"></script>
<!-- Google analytics -->
{% include analytics.html %}
</head>

0 comments on commit e3d868a

Please sign in to comment.