[gnomeweb-wml] Tweaked a bit piwik's tracking code.
- From: Andrea Veri <av src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnomeweb-wml] Tweaked a bit piwik's tracking code.
- Date: Mon, 27 Feb 2012 18:16:41 +0000 (UTC)
commit 6eaaab8a91f32f10250af33258c156b76149706e
Author: Andrea Veri <av src gnome org>
Date: Mon Feb 27 19:15:05 2012 +0100
Tweaked a bit piwik's tracking code.
include/evilsedhack | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/include/evilsedhack b/include/evilsedhack
index be1ac21..e9cd2e0 100755
--- a/include/evilsedhack
+++ b/include/evilsedhack
@@ -5,10 +5,7 @@ URLPATH=$3
case "$ROOT" in
http://www.gnome.org)
- PIWIK_SITE_ID=1
- ;;
- http://news.gnome.org)
- PIWIK_SITE_ID=3
+ PIWIK_SITE_ID=3 # This refers to http://www-old.gnome.org.
;;
http://projects.gnome.org)
PIWIK_SITE_ID=4
@@ -136,11 +133,11 @@ var pkBaseURL = (("https:" == document.location.protocol) ? "https://webstats.gn
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);
+var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", $PIWIK_SITE_ID);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
-</script><noscript><p><img src="http://webstats.gnome.org/piwik.php?idsite=3" style="border:0" alt="" /></p></noscript>
+</script><noscript><p><img src="http://webstats.gnome.org/piwik.php?idsite=$PIWIK_SITE_ID" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->
</body>
</html>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]