aboutsummaryrefslogtreecommitdiffstats
path: root/analytics.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2013-02-12 17:22:28 +0000
committerRomain d'Alverny <rda@mageia.org>2013-02-12 17:22:28 +0000
commit33a3d293e2c8eb5ecd1fbb2654a9afb05e186e1d (patch)
tree48dbce4ca53e036d80ad10fab4d501ae7286c451 /analytics.php
parent14019b3de495782c9750d2d95688921e580beab9 (diff)
downloadwww-33a3d293e2c8eb5ecd1fbb2654a9afb05e186e1d.tar
www-33a3d293e2c8eb5ecd1fbb2654a9afb05e186e1d.tar.gz
www-33a3d293e2c8eb5ecd1fbb2654a9afb05e186e1d.tar.bz2
www-33a3d293e2c8eb5ecd1fbb2654a9afb05e186e1d.tar.xz
www-33a3d293e2c8eb5ecd1fbb2654a9afb05e186e1d.zip
"Anonymize" IPs in Google Analytics tracker.
- removes the last octet of IP addresses, according to docs - follows notice from user in Mageia forum https://forums.mageia.org/en/viewtopic.php?t=4367 - will be deployed on other existing trackers on mageia.org - cf. https://wiki.mageia.org/en/Privacy_policy#Web_sites_analytics
Diffstat (limited to 'analytics.php')
-rw-r--r--analytics.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/analytics.php b/analytics.php
index 81ee4ce38..e5e55bca9 100644
--- a/analytics.php
+++ b/analytics.php
@@ -3,6 +3,7 @@
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-18603191-1']);
_gaq.push(['_setDomainName', '.mageia.org']);
+ _gaq.push(['_gat._anonymizeIp']);
_gaq.push(['_trackPageview']);
(function() {