Commit c6a07ecd authored by Yuxin Wu's avatar Yuxin Wu

fix GA

parent 115f207c
......@@ -4,4 +4,13 @@
<script type="text/javascript"
src={{ pathto('_static/jquery-3.2.1.min.js', 1) }}>
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-42349716-2', 'auto');
ga('send', 'pageview');
</script>
{% endblock %}
......@@ -160,7 +160,7 @@ html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
html_theme_options = { 'analytics_id': 'UA-42349716-2' }
html_theme_options = {}
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment