summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/page-front.tpl.php17
-rwxr-xr-xtemplates/page.tpl.php17
2 files changed, 34 insertions, 0 deletions
diff --git a/templates/page-front.tpl.php b/templates/page-front.tpl.php
index 363267a..bd4a156 100755
--- a/templates/page-front.tpl.php
+++ b/templates/page-front.tpl.php
@@ -486,5 +486,22 @@
<?php print $page_closure; ?>
<?php print $closure; ?>
+
+<!-- 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', 5]);
+ 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=5" style="border:0;" alt="" /></p></noscript>
+<!-- End Piwik Code -->
+
</body>
</html>
diff --git a/templates/page.tpl.php b/templates/page.tpl.php
index 4024b29..71fa5f2 100755
--- a/templates/page.tpl.php
+++ b/templates/page.tpl.php
@@ -309,5 +309,22 @@
<?php print $page_closure; ?>
<?php print $closure; ?>
+
+<!-- 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', 5]);
+ 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=5" style="border:0;" alt="" /></p></noscript>
+<!-- End Piwik Code -->
+
</body>
</html>