[Bf-docboard-svn] bf-manual: [8156] trunk/blender_docs: Cleanup: Use theme to add google analytics
Aaron Carlisle
noreply at blender.org
Wed Jun 23 00:15:53 CEST 2021
Revision: 8156
https://developer.blender.org/rBM8156
Author: Blendify
Date: 2021-06-23 00:15:53 +0200 (Wed, 23 Jun 2021)
Log Message:
-----------
Cleanup: Use theme to add google analytics
This has a small performance decrease because the theme does not async load the js
however, this will be fixed in the upcoming release of the theme
Modified Paths:
--------------
trunk/blender_docs/manual/conf.py
trunk/blender_docs/resources/templates/layout.html
Modified: trunk/blender_docs/manual/conf.py
===================================================================
--- trunk/blender_docs/manual/conf.py 2021-06-22 02:26:10 UTC (rev 8155)
+++ trunk/blender_docs/manual/conf.py 2021-06-22 22:15:53 UTC (rev 8156)
@@ -174,6 +174,7 @@
if html_theme == "sphinx_rtd_theme":
html_theme_options = {
+ "analytics_id": "UA-1418081-1",
# included in the title
"display_version": False,
"collapse_navigation": True,
Modified: trunk/blender_docs/resources/templates/layout.html
===================================================================
--- trunk/blender_docs/resources/templates/layout.html 2021-06-22 02:26:10 UTC (rev 8155)
+++ trunk/blender_docs/resources/templates/layout.html 2021-06-22 22:15:53 UTC (rev 8156)
@@ -23,13 +23,3 @@
<link rel="alternate" hreflang="x-default" href="https://docs.blender.org/manual/en/latest/" />
{{ super() }}
{%- endblock %}
-
-{%- block footer %}
-{{ super() }}
-<script>
-window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
-ga('create', 'UA-1418081-1', 'auto');
-ga('send', 'pageview');
-</script>
-<script async='async' src='https://www.google-analytics.com/analytics.js'></script>
-{%- endblock %}
More information about the Bf-docboard-svn
mailing list