Send custom dimensions for mkdocs
@@ -6,6 +6,12 @@ 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', '{{ global_analytics_code }}', 'auto', 'rtfd');
+ga('rtfd.set', 'dimension1', READTHEDOCS_DATA.project);
+ga('rtfd.set', 'dimension2', READTHEDOCS_DATA.version);
+ga('rtfd.set', 'dimension3', READTHEDOCS_DATA.language);
+ga('rtfd.set', 'dimension4', READTHEDOCS_DATA.theme);
+ga('rtfd.set', 'dimension5', READTHEDOCS_DATA.programming_language);
+ga('rtfd.set', 'dimension6', READTHEDOCS_DATA.builder);
ga('rtfd.send', 'pageview');
{% if user_analytics_code %}
