[Scummvm-cvs-logs] SF.net SVN: scummvm:[52925] web/trunk/templates/index.tpl

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Tue Sep 28 14:51:57 CEST 2010


Revision: 52925
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52925&view=rev
Author:   fingolfin
Date:     2010-09-28 12:51:55 +0000 (Tue, 28 Sep 2010)

Log Message:
-----------
WEB: Add Piwik JS tracking code (might eventually replace google analytics)

Modified Paths:
--------------
    web/trunk/templates/index.tpl

Modified: web/trunk/templates/index.tpl
===================================================================
--- web/trunk/templates/index.tpl	2010-09-28 12:46:54 UTC (rev 52924)
+++ web/trunk/templates/index.tpl	2010-09-28 12:51:55 UTC (rev 52925)
@@ -118,5 +118,18 @@
 		_udn = "scummvm.org";
 		urchinTracker();
 	</script>
+{* End Google analytics javascript. *}
+{* Piwik javascript. *}
+	<script type="text/javascript">
+	var pkBaseURL = (("https:" == document.location.protocol) ? "https://sourceforge.net/apps/piwik/scummvm/" : "http://sourceforge.net/apps/piwik/scummvm/");
+	document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
+	</script><script type="text/javascript">
+	try {
+	var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 3);
+	piwikTracker.trackPageView();
+	piwikTracker.enableLinkTracking();
+	} catch( err ) {}
+	</script><noscript><p><img src="http://sourceforge.net/apps/piwik/scummvm/piwik.php?idsite=3" style="border:0" alt=""/></p></noscript>
+{* End Piwik javascript. *}
 </body>
 </html>


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list