Add Piwik tracking code
This commit is contained in:
parent
9b9bd8ea0f
commit
7947f89b5f
|
@ -7,6 +7,24 @@
|
||||||
<link rel="icon" type="image/x-icon" href="${request.static_url('tailbone:static/img/rattail.ico')}" />
|
<link rel="icon" type="image/x-icon" href="${request.static_url('tailbone:static/img/rattail.ico')}" />
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
|
<%def name="head_tags()">
|
||||||
|
<!-- Piwik -->
|
||||||
|
<script type="text/javascript">
|
||||||
|
var _paq = _paq || [];
|
||||||
|
// tracker methods like "setCustomDimension" should be called before "trackPageView"
|
||||||
|
_paq.push(['trackPageView']);
|
||||||
|
_paq.push(['enableLinkTracking']);
|
||||||
|
(function() {
|
||||||
|
var u="//piwik.rattailproject.org/";
|
||||||
|
_paq.push(['setTrackerUrl', u+'piwik.php']);
|
||||||
|
_paq.push(['setSiteId', '1']);
|
||||||
|
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||||
|
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
<!-- End Piwik Code -->
|
||||||
|
</%def>
|
||||||
|
|
||||||
<%def name="header_logo()">
|
<%def name="header_logo()">
|
||||||
${h.image(request.static_url('tailbone:static/img/rattail.ico'), "Header Logo", height='49')}
|
${h.image(request.static_url('tailbone:static/img/rattail.ico'), "Header Logo", height='49')}
|
||||||
</%def>
|
</%def>
|
||||||
|
|
Loading…
Reference in a new issue