I just uploaded version 1.2.2 of my WordPress Google Analytics plugin. It squashes one major bug that has been plaguing some users. Those that switch back and forth from visual to HTML editor, will not longer have problems with it getting stuck!
WordPress Google Analytics 1.2.2 Released!
This entry was posted in WordPress Plugin Updates and tagged google analytics, Wordpress Plugin Update. Bookmark the permalink.
great new pugin – gives good easy to read results
Plugin that all wordpress theme should have.
http://www.y920.com/
Plugin that all wordpress theme should have.
http://www.y920.com/
Love the update Thanks for keeping wordpress fresh
use of $_SERVER['HTTPS'] unreliable in WordPress Google Analytics 1.2.3.
in
wp-google-analytics.php
on line
166
in
function get_url
you use
$_SERVER['HTTPS']
To my empirical knowledge this is rather unreliable and additionally can give errors(notice).
I should probably check to see if it's set before I use it to fix the notice. However, that's a pretty standard check for HTTPS. The alternative is to check the port, but that's less reliable in my experience. That line should probably be something like:
<code>$site_url = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')? 'https://':'http://').$_SERVER['HTTP_HOST'];</code>
I should probably check to see if it's set before I use it to fix the notice. However, that's a pretty standard check for HTTPS. The alternative is to check the port, but that's less reliable in my experience. That line should probably be something like:
$site_url = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')? 'https://':'http://').$_SERVER['HTTP_HOST'];