aboutsummaryrefslogtreecommitdiff
path: root/docs/templates
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-05-26 16:35:28 -0700
committerMark Otto <[email protected]>2012-05-26 16:35:28 -0700
commitcc8b260ed8730f7e971e2c50fc01cdd0169cdddd (patch)
tree019da32b9eb150b75575c7f63a33a94f9faf50ff /docs/templates
parenta7529e158be8153fd350d19445e9e93261050c55 (diff)
downloadbootstrap-cc8b260ed8730f7e971e2c50fc01cdd0169cdddd.tar.xz
bootstrap-cc8b260ed8730f7e971e2c50fc01cdd0169cdddd.zip
adding google analytics tracking to docs
Diffstat (limited to 'docs/templates')
-rw-r--r--docs/templates/layout.mustache13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/templates/layout.mustache b/docs/templates/layout.mustache
index ca91a8037..ae2ce4aad 100644
--- a/docs/templates/layout.mustache
+++ b/docs/templates/layout.mustache
@@ -24,6 +24,19 @@
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
+
+ {{#production}}
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-146052-10']);
+ _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>
+ {{/production}}
</head>
<body data-spy="scroll" data-target=".subnav" data-offset="50">