Remove Google Analytics tracking code

This commit is contained in:
Jez Cope 2019-11-25 20:06:03 +00:00
parent 602f6a0533
commit 160cebd0be
1 changed files with 1 additions and 12 deletions

13
conf.py
View File

@ -1133,18 +1133,7 @@ MARKDOWN_EXTENSIONS = ['fenced_code', 'codehilite', 'extra', 'admonition']
# Google Analytics or whatever else you use. Added to the bottom of <body>
# in the default template (base.tmpl).
# (translatable)
GOOGLE_ANALYTICS = "UA-10201101-1"
BODY_END = f"""
<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','//www.google-analytics.com/analytics.js','ga');
ga('create', '{GOOGLE_ANALYTICS}', 'auto');
ga('send', 'pageview');
</script>
"""
# BODY_END = ""
# The possibility to extract metadata from the filename by using a
# regular expression.