doc: add Google Analytics tracking code

This commit is contained in:
Sergey Shepelev 2013-08-04 16:36:56 +04:00
parent c3f5207f24
commit 5e40ef4bc3
2 changed files with 23 additions and 0 deletions

14
doc/_templates/layout.html vendored Normal file
View File

@ -0,0 +1,14 @@
{% extends "!layout.html" %}
{% block footer %}
{{ super() }}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-42952223-1', 'eventlet.net');
ga('send', 'pageview');
</script>
{% endblock %}

View File

@ -11,6 +11,15 @@
<link rel="top" title="Eventlet Networking Library" href="" /> <link rel="top" title="Eventlet Networking Library" href="" />
</head> </head>
<body> <body>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-42952223-1', 'eventlet.net');
ga('send', 'pageview');
</script>
<div class="document"> <div class="document">
<div class="documentwrapper"> <div class="documentwrapper">