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:
parent
9738b360b7
commit
e252d41c95
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=40666
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
})();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue