Skip to content

Commit 3e4a900

Browse files
committed
Adding google analytics
1 parent 87c965e commit 3e4a900

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/_templates/layout.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{% extends "!layout.html" %}
2+
3+
{% block footer %}
4+
{{ super() }}
5+
<script type="text/javascript">
6+
var _gaq = _gaq || [];
7+
_gaq.push(['_setAccount', 'UA-39039482-1']);
8+
_gaq.push(['_trackPageview']);
9+
10+
(function() {
11+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
12+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
13+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
14+
})();
15+
</script>
16+
{% endblock %}

0 commit comments

Comments
 (0)