svn commit: r40666 - head/en_US.ISO8859-1/htdocs/layout/js
Eitan Adler
eadler at FreeBSD.org
Thu Jan 17 03:32:18 UTC 2013
Author: eadler
Date: Thu Jan 17 03:32:17 2013
New Revision: 40666
URL: http://svnweb.freebsd.org/changeset/doc/40666
Log:
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
Modified:
head/en_US.ISO8859-1/htdocs/layout/js/google.js
Modified: head/en_US.ISO8859-1/htdocs/layout/js/google.js
==============================================================================
--- head/en_US.ISO8859-1/htdocs/layout/js/google.js Thu Jan 17 02:08:14 2013 (r40665)
+++ head/en_US.ISO8859-1/htdocs/layout/js/google.js Thu Jan 17 03:32:17 2013 (r40666)
@@ -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 && fbsdrege
ga.src = 'https://ssl.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
+
})();
}
More information about the svn-doc-head
mailing list