[foundation-web] Add piwik tag also to xsltproc processing of pages
- From: Jaap A. Haitsma <jhaitsma src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [foundation-web] Add piwik tag also to xsltproc processing of pages
- Date: Wed, 11 Nov 2009 05:24:10 +0000 (UTC)
commit 2d2de41d26c164ce4ba5f28204cacafcdc5e6dfb
Author: Jaap A. Haitsma <jaap haitsma org>
Date: Wed Nov 11 06:23:45 2009 +0100
Add piwik tag also to xsltproc processing of pages
include/add-header.xsl | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/include/add-header.xsl b/include/add-header.xsl
index 2c67083..a42fd29 100644
--- a/include/add-header.xsl
+++ b/include/add-header.xsl
@@ -86,6 +86,20 @@
<a href="http://www.w3.org/">standards</a>.
Hosted by <a href="http://www.redhat.com/">Red Hat</a>.
</div>
+
+ <!-- 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", 5);
+ piwikTracker.trackPageView();
+ piwikTracker.enableLinkTracking();
+ } catch( err ) {}
+ </script><noscript><p><img src="http://webstats.gnome.org/piwik.php?idsite=5" style="border:0" alt=""/></p></noscript>
+ <!-- End Piwik Tag -->
+
</body>
</xsl:template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]