summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPriyanka Bhagwat2014-09-18 18:24:43 +0530
committerPriyanka Bhagwat2014-09-18 18:24:43 +0530
commitd22c2fef9ba0ba96f00cb5125a30b1332e05e754 (patch)
tree15ac98203593dac925026683f68e4b325786c86e
parent9d2babafbf23339a4777b5313b162f9552dd1813 (diff)
downloadscilab_theme-d22c2fef9ba0ba96f00cb5125a30b1332e05e754.tar.gz
scilab_theme-d22c2fef9ba0ba96f00cb5125a30b1332e05e754.tar.bz2
scilab_theme-d22c2fef9ba0ba96f00cb5125a30b1332e05e754.zip
added Analytics
-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 9ea892e..f8563f4 100755
--- a/templates/page-front.tpl.php
+++ b/templates/page-front.tpl.php
@@ -467,5 +467,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 5219ca6..622a206 100755
--- a/templates/page.tpl.php
+++ b/templates/page.tpl.php
@@ -289,5 +289,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>