yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #08184
[Branch ~yade-dev/yade/trunk] Rev 2988: Added google analytics script to sphinx doc
------------------------------------------------------------
revno: 2988
committer: Rémi <remi.cailletaud@xxxxxxxxxxx>
branch nick: yade
timestamp: Tue 2011-12-20 17:00:24 +0100
message:
Added google analytics script to sphinx doc
modified:
doc/sphinx/templates/layout.html
--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'doc/sphinx/templates/layout.html'
--- doc/sphinx/templates/layout.html 2010-06-12 20:39:00 +0000
+++ doc/sphinx/templates/layout.html 2011-12-20 16:00:24 +0000
@@ -8,8 +8,27 @@
table.right td { border: 1px solid #ccc; }
</style>
{%- endif %}
+<script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-597021-2']);
+ _gaq.push(['_trackPageview']);
+</script>
{% endblock %}
+
+{% block footer %}
+{{ super() }}
+<script type="text/javascript">
+ (function() {
+ var ga = document.createElement('script');
+ ga.src = ('https:' == document.location.protocol ?
+ 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ ga.setAttribute('async', 'true');
+ document.documentElement.firstChild.appendChild(ga);
+ })();
+</script>
+ {% endblock %}
+
{% block rootrellink %}
<li><a href="{{ pathto('index') }}">Yade</a> | </li>
<li><a href="{{ pathto('index-toctree') }}">Documentation</a>