Commit graph

14 commits

Author SHA1 Message Date
Eitan Adler
798defac47 stats: revert r51804
Due to incomplete testing I hadn't noticed that this actually generated
"&&" rather than "&&" in the output. Revert for now while I
solicit some help getting this done right.
2018-06-20 01:07:56 +00:00
Eitan Adler
f0679e836b ga: convert to "tag manager"
There have been two generations of GA since we first implemented GA on
the website. The newest version allows us to get deeper insights while
collecting less personal data. This version is also faster and loads
async which should help load the &os; website on slower networks.

As a reminder: to opt out do ANY of the following:
- block google.com via an adblocker
- set (abuse) the "do not track" header

In addition we've selected to disable many features in the console that
would result in collecting more data.

With Hat:	webstats@
2018-06-08 05:42:14 +00:00
Gavin Atkinson
4e718926f2 Ensure the Google Analytics code only runs when served from FreeBSD.org
or google.com servers.  This was always the intention, but due to a bug
it would also run when (for example) accessed via
http://www.freebsd.org.nyud.net.

Approved by:	webstats (eadler)
2014-10-14 23:32:42 +00:00
Eitan Adler
7e2c91e491 Ah ECMAScript, how I wish you were sane.
Approved by:	doceng
2013-06-12 21:45:27 +00:00
Eitan Adler
82e6e39154 Fix GA on the website. The version as committed now does not function.
Note that different browsers implement different methods of DNT and
that some chosen values for the JS API has changed sine this was originally implemented.

Approved by:	doceng
2013-06-12 20:52:31 +00:00
Glen Barber
bbd96fdbd5 Check for boolean 'true' case of w.n.dNT.
Submitted by:	des
Approved by:	doceng (implicit)
2013-06-06 11:49:53 +00:00
Eitan Adler
e252d41c95 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
2013-01-17 03:32:17 +00:00
Eitan Adler
4b36ddbfee Anonymize the last octet of the IP address. This is a tradeoff of
privacy vs geo-ip accuracy.

Approved by:	bcr, jkois (mentors, implicit)
2012-12-06 12:35:53 +00:00
Eitan Adler
124be1816f Enable Google Analytics
Approved by:	doceng
Approved by:	core
2012-12-05 01:44:12 +00:00
Eitan Adler
f5c4c5d41c I maintain the Google Analytics file and must approve changes.
This should have been here since it was committed.

Implement DNT checks

Make enable/disabling the flip of an obvious switch.

Remove pointless custom variable (it doesn't work anyways)

Fix some style errors

Add a file allowing Google to verify that I "control" freebsd.org

Reviewed by:	doceng (gjb)
Approved by:	bcr (mentor)
2012-12-05 01:43:27 +00:00
Isabell Long
bee5d224fe Remove the ability to change the font size on the website. There are now
much better ways of doing this in modern web browsers.  Furthermore, it
never worked as well as it should have done, as too much of the website is
built around fixed layouts.

It was felt it was best to remove the size switcher from all languages at
once, so that the infrastructure (styleswitcher.js etc.) could be removed
at the same time.

Discussed at:	Cambridge DevSummit, August 2012
Discussed on:	www@
Approved by:	gabor (mentor)
2012-09-30 13:27:05 +00:00
Hiroki Sato
35babe0ae5 - Set svn:ketwords and svn:mime-type. Note that application/octet-stream is
set on some files as a workaround for binary check.
- Fix pathname for svn co in the webupdate script.

Approved by:	doceng (implicit)
2012-05-17 19:12:14 +00:00
Hiroki Sato
4fe414e55f - Move developers.sgml to the language-independent directory.
- Move files under <lang>/htdocs/share to <lang>/share.
- s/WEB_PREFIX/DOC_PREFIX/
- Update the webupdate script to use the SVN repository.
 
Approved by:	doceng (implicit)
2012-05-17 03:23:15 +00:00
Hiroki Sato
282a032540 - Remove junk directories.
- Repocopy from www/<lang> to head/<lang>/htdocs to eliminate duplicate
  information in the www and the doc directory.
- Add various administration files to svnadmin.
 
Approved by:	doceng (implicit)
2012-05-17 02:51:08 +00:00