[planet-web] On index-regular.html.tmpl as well
- From: Andrea Veri <av src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [planet-web] On index-regular.html.tmpl as well
- Date: Thu, 30 Jan 2014 17:08:02 +0000 (UTC)
commit a6ae37f1b32af97cc5cd07ed8fd5120692ed2a90
Author: Andrea Veri <av gnome org>
Date: Thu Jan 30 18:07:58 2014 +0100
On index-regular.html.tmpl as well
themes/gnome/index-regular.html.tmpl | 26 ++++++++++++++++----------
1 files changed, 16 insertions(+), 10 deletions(-)
---
diff --git a/themes/gnome/index-regular.html.tmpl b/themes/gnome/index-regular.html.tmpl
index dc9c0a1..2e38357 100644
--- a/themes/gnome/index-regular.html.tmpl
+++ b/themes/gnome/index-regular.html.tmpl
@@ -312,18 +312,24 @@ Hosted by <a href="http://www.redhat.com/">Red Hat</a>.</p>
});
});
</script>
+
<!-- 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", 6);
-piwikTracker.trackPageView();
-piwikTracker.enableLinkTracking();
-} catch( err ) {}
-</script><noscript><p><img src="https://webstats.gnome.org/piwik.php?idsite=6" style="border:0"
alt=""/></p></noscript>
-<!-- End Piwik Tag -->
+ var _paq = _paq || [];
+ _paq.push(['disableCookies']);
+ _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", "2"]);
+ 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 -->
+
</body>
</html>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]