Skip to content

Commit

Permalink
Merge pull request #820 from BioSchemas/analytics
Browse files Browse the repository at this point in the history
Add Google tag for analytics
  • Loading branch information
albangaignard authored Jul 23, 2024
2 parents e40b1db + e3d868a commit 54bdb41
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 54bdb41

Please sign in to comment.