Skip to content

Commit

Permalink
Add google analytical links to docs.
Browse files Browse the repository at this point in the history
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
  • Loading branch information
sighingnow committed Jun 8, 2021
1 parent 28bffc6 commit 1988e78
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/_templates/layout.html
Expand Up @@ -7,6 +7,22 @@

#}

{%- block extrahead %}

{{ super() }}

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

gtag('config', 'G-4TMYCGJ0X2');
</script>

{% endblock %}

{% block navigation %}
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
{% block menu %}
Expand Down

0 comments on commit 1988e78

Please sign in to comment.