Page 1 of 1

google analytics on https pages

Posted: Sun 1. Oct 2006, 19:41
by Goran
To prevent browser warning message using the HTTPS
protocol Google analytics tracking code need to be
tailored in pixelTracking.php for secure access.

EXAMPLE:

Code: Select all

if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') {
echo '<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"></script>'; 
} else {
echo '<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>';
}

Posted: Sun 1. Oct 2006, 20:31
by Oliver Georgi
But please - this is NO bug! It's just an advice.

Oliver

Posted: Mon 2. Oct 2006, 00:03
by Goran
Hmm, but phpwcms call the google analytics script from http address... on https pages, looks like a bug to me. :roll:

Posted: Mon 2. Oct 2006, 07:19
by Oliver Georgi
A bug is a bug - and that's none. It's a feature request. By default phpwcms does not support HTTPS.

That the browser sends a warning message is a security thing - not more.

But no problem.

Oliver

Posted: Mon 2. Oct 2006, 13:45
by Goran
I understand, sorry for posting on wrong board. I will use sourceforge tracker in the future. :wink: