Add analytics
This commit is contained in:
parent
f519298468
commit
538532a305
4 changed files with 16 additions and 14 deletions
0
docs/source/API/.placeholder
Normal file
0
docs/source/API/.placeholder
Normal file
14
docs/source/_themes/Alchemy/analytics.html
Normal file
14
docs/source/_themes/Alchemy/analytics.html
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
<script>
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(['_setAccount', 'UA-30671300-3']);
|
||||
_gaq.push(['_setDomainName', 'readthedocs.org']);
|
||||
_gaq.push(['_setAllowLinker', true]);
|
||||
_gaq.push(['_trackPageview']);
|
||||
|
||||
(function() {
|
||||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
||||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||
})();
|
||||
</script>
|
||||
|
|
@ -220,18 +220,6 @@
|
|||
|
||||
{{ script() }}
|
||||
|
||||
<script>
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(['_setAccount', 'UA-30671300-1']);
|
||||
_gaq.push(['_setDomainName', 'readthedocs.org']);
|
||||
_gaq.push(['_setAllowLinker', true]);
|
||||
_gaq.push(['_trackPageview']);
|
||||
|
||||
(function() {
|
||||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
||||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||
})();
|
||||
</script>
|
||||
{% include "analytics.html" %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ html_theme_path = ['_themes']
|
|||
# Add any paths that contain custom static files (such as style sheets) here,
|
||||
# relative to this directory. They are copied after the builtin static files,
|
||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||
html_static_path = ['_static']
|
||||
html_static_path = ['_static', 'API']
|
||||
|
||||
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
||||
# using the given strftime format.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue