Skip to content

Commit 30c0cb1

Browse files
author
Kenneth Reitz
committed
added google analytics to html output
1 parent f56f7b4 commit 30c0cb1

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

docs/_themes/kr/layout.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,21 @@
1313
© Copyright {{ copyright }}.
1414
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
1515
</div>
16+
17+
<script type="text/javascript">
18+
19+
var _gaq = _gaq || [];
20+
_gaq.push(['_setAccount', 'UA-8742933-10']);
21+
_gaq.push(['_setDomainName', 'none']);
22+
_gaq.push(['_setAllowLinker', true]);
23+
_gaq.push(['_trackPageview']);
24+
25+
(function() {
26+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
27+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
28+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
29+
})();
30+
31+
</script>
32+
1633
{%- endblock %}

0 commit comments

Comments
 (0)