Analytics code for Rocha

master
Nick Sergeant 2012-08-09 15:58:25 -04:00
parent 0a05398a0f
commit 81e955f13e
2 changed files with 16 additions and 0 deletions

View File

@ -59,3 +59,17 @@
</nav>
</aside>
{% endblock %}
{% block analytics %}
{% if blog_user.username == 'rochacbruno' %}
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-33970092-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>
{% endif %}
{% endblock %}

View File

@ -433,6 +433,8 @@
{% endif %}
{% endif %}
{% block analytics %}{% endblock %}
<div class="hidden">
<img src="{{ STATIC_URL }}images/header-fixed-save.gif" alt="" />
<img src="{{ STATIC_URL }}images/chosen-sprite.png" alt="" />