Skip to content

Commit

Permalink
Add analytics code to _templates/layout.html.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldx committed Feb 8, 2013
1 parent cb64cfc commit ec9ede2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions doc/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{% extends "!layout.html" %}

{% block footer %}
{{ super() }}
<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-38352912-1']);
_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>
{% endblock %}

0 comments on commit ec9ede2

Please sign in to comment.