Add analytics

This commit is contained in:
grosroro 2012-05-31 11:40:39 +02:00
commit 538532a305
4 changed files with 16 additions and 14 deletions

View file

View 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>

View file

@ -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>

View file

@ -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.