Forum Moderators: DixonJones
So here is the thread :
[webmasterworld.com...]
And here is my answer :
What I did was just use the ssl URL and use the same ID. I have only been doing this for a day now, but it does seem to be working well!
PHP Example :
if($_SERVER['HTTPS'])
{
$google_analytics_url = "https://ssl.google-analytics.com/urchin.js";
}
else
{
$google_analytics_url = "http://www.google-analytics.com/urchin.js";
}
echo "
<script src='$google_analytics_url' type='text/javascript'>
</script>
<script type='text/javascript'>
_uacct = 'ACCT_ID_GOES_HERE';
urchinTracker();
</script>
";
[edited by: Trex005 at 11:52 am (utc) on July 22, 2006]