|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r72087 - website/public_html/beta/doc
From: dnljms_at_[hidden]
Date: 2011-05-22 13:46:26
Author: danieljames
Date: 2011-05-22 13:46:25 EDT (Sun, 22 May 2011)
New Revision: 72087
URL: http://svn.boost.org/trac/boost/changeset/72087
Log:
Website: Try specifying the google analytics cookie domain.
Text files modified:
website/public_html/beta/doc/display_libs.php | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
Modified: website/public_html/beta/doc/display_libs.php
==============================================================================
--- website/public_html/beta/doc/display_libs.php (original)
+++ website/public_html/beta/doc/display_libs.php 2011-05-22 13:46:25 EDT (Sun, 22 May 2011)
@@ -30,6 +30,12 @@
}
function add_spirit_analytics($content) {
+ $server = $_SERVER['HTTP_HOST'];
+
+ // Always serving for testing, will disable soon.
+ //if ($server != 'www.boost.org' && $server != 'live.boost.org')
+ // return $content;
+
if(stripos($content, '_uacct = "UA-11715441-2"') !== FALSE)
return $content;
@@ -39,7 +45,7 @@
_gaq.push(
['_setAccount', 'UA-11715441-2'],
['_trackPageview'],
- ['_setDomainName', 'none'],
+ ['_setDomainName', '$server'],
['_setAllowLinker', true]
);
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk