[library-web] Add a webstat tracking script
- From: Ekaterina Gerasimova <egerasimov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] Add a webstat tracking script
- Date: Fri, 21 Jun 2013 21:14:39 +0000 (UTC)
commit 60cd89c23e06ec684c4351fee4d4202547078fa9
Author: Ekaterina Gerasimova <kittykat3756 gmail com>
Date: Fri Jun 21 22:12:34 2013 +0100
Add a webstat tracking script
data/xslt/heading.xsl | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/data/xslt/heading.xsl b/data/xslt/heading.xsl
index 2f6eb5e..7be3784 100644
--- a/data/xslt/heading.xsl
+++ b/data/xslt/heading.xsl
@@ -183,6 +183,23 @@ $('#s').autocomplete('/symbols/lookup/',
<div class="clear"></div>
</div>
</div>
+
+ <!-- Piwik webstats -->
+ <script type="text/javascript">
+ var _paq = _paq || [];
+ _paq.push(["trackPageView"]);
+ _paq.push(["enableLinkTracking"]);
+
+ (function() {
+ var u=(("https:" == document.location.protocol) ? "https" : "http") + "://webstats.gnome.org/";
+ _paq.push(["setTrackerUrl", u+"piwik.php"]);
+ _paq.push(["setSiteId", "6"]);
+ 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>
+ <!-- End Piwik Code -->`
+
</xsl:template>
</xsl:stylesheet>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]