Added support for StatCounter

This commit is contained in:
Luca Chiricozzi 2015-01-09 00:08:43 +01:00
parent 71735674eb
commit 640d5812d7
1 changed files with 20 additions and 0 deletions

View File

@ -23,3 +23,23 @@ var _paq = _paq || [];
ga('create','{{ GOOGLE_ANALYTICS }}');ga('send','pageview');
</script>
{% endif %}
{% if SC_PROJECT and SC_SECURITY %}
<!-- Start of StatCounter Code for Default Guide -->
<script type="text/javascript">
var sc_project={{ SC_PROJECT }};
var sc_invisible=1;
var sc_security="{{ SC_SECURITY }}";
var scJsHost = (("https:" == document.location.protocol) ?
"https://secure." : "http://www.");
document.write("<sc"+"ript type='text/javascript' src='" +
scJsHost+
"statcounter.com/counter/counter.js'></"+"script>");
</script>
<noscript><div class="statcounter"><a title="site stats"
href="http://statcounter.com/" target="_blank"><img
class="statcounter"
src="http://c.statcounter.com/{{ SC_PROJECT }}/0/{{ SC_SECURITY }}/1/"
alt="site stats"></a></div></noscript>
<!-- End of StatCounter Code for Default Guide -->
{% endif %}