diff options
author | hardythe1 | 2014-09-25 14:22:54 +0530 |
---|---|---|
committer | hardythe1 | 2014-09-25 14:22:54 +0530 |
commit | 5208bc0d9ac769670e59ce43b933a8c0ce2827b6 (patch) | |
tree | 29e78f07d5a0ec7da804671fb92ab25816ce709c /tbc | |
parent | 704b75f488828a605c11c7c1e93f4b0290338072 (diff) | |
download | Python-TBC-Interface-5208bc0d9ac769670e59ce43b933a8c0ce2827b6.tar.gz Python-TBC-Interface-5208bc0d9ac769670e59ce43b933a8c0ce2827b6.tar.bz2 Python-TBC-Interface-5208bc0d9ac769670e59ce43b933a8c0ce2827b6.zip |
added JS to track page hits
Diffstat (limited to 'tbc')
-rwxr-xr-x | tbc/templates/base.html | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tbc/templates/base.html b/tbc/templates/base.html index 855ae88..9c515f3 100755 --- a/tbc/templates/base.html +++ b/tbc/templates/base.html @@ -217,6 +217,20 @@ ga('send', 'pageview'); </script> <!-- / google analytics --> + <!-- Piwik --> +<script type="text/javascript"> + var _paq = _paq || []; + _paq.push(['trackPageView']); + _paq.push(['enableLinkTracking']); + (function() { + var u=(("https:" == document.location.protocol) ? "https" : "http") + "://analytics.spoken-tutorial.org/"; + _paq.push(['setTrackerUrl', u+'piwik.php']); + _paq.push(['setSiteId', 15]); + var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; + g.defer=true; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); + })(); +</script> +<noscript><p><img src="http://analytics.spoken-tutorial.org/piwik.php?idsite=15" style="border:0;" alt="" /></p></noscript> +<!-- End Piwik Code --> </body> </html> - |