Skip to content

Commit

Permalink
google analytics functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
GeertvanGeest committed Dec 14, 2020
1 parent f675e12 commit 3169662
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ theme:
name: material
logo: assets/images/SIB_logo.svg
favicon: assets/images/SIB_logo.svg
custom_dir: overrides

# Repository
repo_name: sib-swiss/NGS-introduction-training
Expand Down
14 changes: 14 additions & 0 deletions overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

{% extends "base.html" %}

{% block analytics %}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-YX61LNKWGY"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-YX61LNKWGY');
</script>
{% endblock %}

0 comments on commit 3169662

Please sign in to comment.