/[web]/www/trunk/analytics.php
ViewVC logotype

Contents of /www/trunk/analytics.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2056 - (show annotations) (download)
Tue Feb 12 17:22:28 2013 UTC (11 years, 2 months ago) by rda
File size: 615 byte(s)
"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
1 <link rel="icon" type="image/png" href="/g/favicon.png" />
2 <script type="text/javascript">
3 var _gaq = _gaq || [];
4 _gaq.push(['_setAccount', 'UA-18603191-1']);
5 _gaq.push(['_setDomainName', '.mageia.org']);
6 _gaq.push(['_gat._anonymizeIp']);
7 _gaq.push(['_trackPageview']);
8
9 (function() {
10 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
11 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
12 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
13 })();
14 </script>

Properties

Name Value
svn:keywords Id,Author,Date,Rev

  ViewVC Help
Powered by ViewVC 1.1.30