diff --git a/docs/_templates/analytics.html b/docs/_templates/analytics.html
new file mode 100644
index 0000000..388e206
--- /dev/null
+++ b/docs/_templates/analytics.html
@@ -0,0 +1,4 @@
+
diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html
new file mode 100644
index 0000000..0a964f4
--- /dev/null
+++ b/docs/_templates/layout.html
@@ -0,0 +1,8 @@
+{%- extends "!layout.html" %}
+
+{% block extrahead %}
+ {{ super() }}
+ {% if READTHEDOCS %}
+ {% include "analytics.html" %}
+ {% endif %}
+{% endblock %}