Originally Posted by
fly_yag
PHP Code:
if(location.protocol=='http:'){
glink="<scr"+"ipt src='http://www.google-analytics.com/urchin.js'></scr"+"ipt>";
}else{
glink="<scr"+"ipt src='https://www.google-analytics.com/urchin.js'></scr"+"ipt>";
}
Sorry but the https is correct in this case. The if-statement determines which protocol to use based on which type of website you are currently visiting.
The problem actually lies with Google not having their security certificate configured properly. You could try emailing them but I would imagine that they'll probably have this cleaned up pretty quick on their own.
You'd think if Google intended https to be used they would by the SSL certificate, no?