summaryrefslogtreecommitdiffstats
path: root/docsite
diff options
context:
space:
mode:
authorMichael DeHaan <michael@ansibleworks.com>2013-12-25 19:38:40 +0100
committerMichael DeHaan <michael@ansibleworks.com>2013-12-25 19:38:40 +0100
commitde8520da21f291b5da2a9fa5eb833429911fd34d (patch)
tree14553503ee5e2d23e9aaa5ce7936fdb1150e7ab1 /docsite
parentFurther modifications to the module formatter to adjust to the new theme, and... (diff)
downloadansible-de8520da21f291b5da2a9fa5eb833429911fd34d.tar.xz
ansible-de8520da21f291b5da2a9fa5eb833429911fd34d.zip
Add analytics to new docs theme.
Diffstat (limited to 'docsite')
-rw-r--r--docsite/_themes/srtd/layout.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/docsite/_themes/srtd/layout.html b/docsite/_themes/srtd/layout.html
index ae616f6008..6c922d0db3 100644
--- a/docsite/_themes/srtd/layout.html
+++ b/docsite/_themes/srtd/layout.html
@@ -13,6 +13,20 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+<!-- begin analytics -->
+<script type="text/javascript">
+var _gaq = _gaq || [];
+_gaq.push(['_setAccount', 'UA-29861888-2']);
+_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>
+<!-- end analytics -->
+
{% block htmltitle %}
<title>{{ title|striptags|e }}{{ titlesuffix }}</title>
{% endblock %}
@@ -133,5 +147,19 @@
</div>
{% include "versions.html" %}
+
+<!-- begin analytics -->
+<script type="text/javascript">
+var _hsq = _hsq || [];
+_hsq.push(["setContentType", "standard-page"]);
+ (function(d,s,i,r) {
+ if (d.getElementById(i)){return;}
+ var n = d.createElement(s),e = document.getElementsByTagName(s)[0];
+ n.id=i;n.src = '//js.hs-analytics.net/analytics/'+(Math.ceil(new Date()/r)*r)+'/330046.js';
+ e.parentNode.insertBefore(n, e);
+ })(document, "script", "hs-analytics",300000);
+</script>
+<!-- end analytics -->
+
</body>
</html>