Skip to content

Commit

Permalink
Remove Google Analytics from the website
Browse files Browse the repository at this point in the history
  • Loading branch information
jfisteus committed Jul 19, 2022
1 parent 98501d3 commit 23b6a28
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 22 deletions.
24 changes: 12 additions & 12 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,18 +731,18 @@
# Google Analytics or whatever else you use. Added to the bottom of <body>
# in the default template (base.tmpl).
# (translatable)
BODY_END = """
<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', 'UA-42957388-1', 'eyegrade.org');
ga('send', 'pageview');
</script>
"""
#BODY_END = """
#<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', 'UA-42957388-1', 'eyegrade.org');
# ga('send', 'pageview');

#</script>
#"""

# The possibility to extract metadata from the filename by using a
# regular expression.
Expand Down
10 changes: 0 additions & 10 deletions files/doc/user-manual-0.2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1457,15 +1457,5 @@ <h2><a class="toc-backref" href="#id35">5.5&nbsp;&nbsp;&nbsp;Automatic detection
</div>
</div>
</div>
<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', 'UA-42957388-1', 'eyegrade.org');
ga('send', 'pageview');

</script>
</body>
</html>

0 comments on commit 23b6a28

Please sign in to comment.