Permit the "In-Page Analytics" anylitics features to work.

These include
- the "browser size" tool
- the "show hotspots" and "show bubbles" tool

Approved by:	doceng
Hat:		webstats
This commit is contained in:
Eitan Adler 2013-01-17 03:32:17 +00:00
parent 9738b360b7
commit e252d41c95
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=40666

View file

@ -16,7 +16,7 @@ var h = document.location.host;
* Check that the hosting domain is actually a FreeBSD.org domain, so
* we don't accidentally obtain data from mirrors.
*/
var fbsdregex = /(docs|security|svnweb|wiki|www)\.freebsd\.org/i;
var fbsdregex = /((docs|security|svnweb|wiki|www)\.freebsd\.org|google\.com)/i;
if (window.navigator.doNotTrack === "yes") {
allow_track = false;
@ -45,6 +45,7 @@ if (enable_ga && allow_track && fbsdregex.test(h)) {
ga.src = 'https://ssl.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
}