[gnomeweb-wml] Add piwik script
- From: Jaap A. Haitsma <jhaitsma src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnomeweb-wml] Add piwik script
- Date: Sun, 8 Nov 2009 17:24:19 +0000 (UTC)
commit 4dbda46c16d9d1966f795b0c019d18a2d70e54de
Author: Jaap A. Haitsma <jaap haitsma org>
Date: Sun Nov 8 18:23:35 2009 +0100
Add piwik script
include/evilsedhack | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/include/evilsedhack b/include/evilsedhack
index e43b7ff..eee8b2d 100755
--- a/include/evilsedhack
+++ b/include/evilsedhack
@@ -106,6 +106,24 @@ cat <<FOOT
</div>
</div> <!-- end of div#body -->
+
+<!-- Piwik -->
+<script type="text/javascript">
+var pkBaseURL = (("https:" == document.location.protocol) ?
+"https://webstats.gnome.org/" : "http://webstats.gnome.org/");
+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", 1);
+piwikTracker.trackPageView();
+piwikTracker.enableLinkTracking();
+} catch( err ) {}
+</script><noscript><p><img
+src="http://webstats.gnome.org/piwik.php?idsite=1" style="border:0"
+alt=""/></p></noscript>
+<!-- End Piwik Tag -->
+
</body>
</html>
FOOT
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]