Commit graph

8 commits

Author SHA1 Message Date
Simon L. B. Nielsen
fc6392e562 Disable Google Analytics for now until we get the FreeBSD Privacy Policy
wording fixed to "allow" us to share the IP address etc. with Google.

Dicussed with:	core
Submitted by:	gjb
2011-08-31 20:00:29 +00:00
Glen Barber
9c24e1fdb8 Mostly minor tweaks to google.js:
o Add security/svnweb to regex
o Reorder regex alphabetically
o Add 'freebsd.org' domain name to the GA array
o Add one-line sample code if we ever need/want to track non-FreeBSD.org
  sites
o Add 'page load time' to the GA array
o While here, add more useful comments to the 'custom var' array

Submitted by:		eadler (mostly, original version)
2011-08-20 23:47:06 +00:00
Glen Barber
72b2954981 Add the 'docs' subdomain to the regex list. 2011-08-17 21:40:30 +00:00
Glen Barber
cba5de5c7c Remove trailing "/(.*)?" from regex check - document.location.host only
returns the hostname, not trailing page information.

With input from:	simon
2011-08-17 13:58:23 +00:00
Glen Barber
7ac36b27cf Fix regular expression testing for 'freebsd.org' domain [1]
Don't look for plain 'freebsd.org'

Pointy hat to:		gjb [1]
Pointed out by:		simon [2]
2011-08-17 13:21:14 +00:00
Glen Barber
04e8aed0fa Fix (again) the logic to test if the hosting domain is a FreeBSD.org
domain and not a mirror by adding some regex to the javascript.
2011-08-17 03:20:07 +00:00
Glen Barber
49fd6cb456 Check that the hosting domain is actually a FreeBSD.org domain, so
we don't accidentally obtain data from mirrors.

Submitted by:		eadler (via email)
2011-08-16 23:19:35 +00:00
Glen Barber
5224f14211 Add javascript to the www/ tree for Google Analytics.
This will also be active on the doc/ tree once we're sure there are no
problems.

PR:		159634
Submitted by:	eadler
2011-08-15 00:30:17 +00:00