Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Add google analytics (#171)
Browse files Browse the repository at this point in the history
* Add google analytics
  • Loading branch information
Relequestual authored Jul 28, 2021
1 parent 6d31099 commit 23c80bc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions source/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@
{# Include our new CSS file into existing ones. #}
{% set bootswatch_css_custom = ['_static/jsonschema.css']%}

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

gtag('config', 'UA-99695987-1');
</script>
{% endblock %}


{# Include some custom js #}
{% set script_files = script_files + ['_static/jsonschema.js']%}

Expand Down

0 comments on commit 23c80bc

Please sign in to comment.