Google Analytics and Secure Pages
Here’s something for anyone who uses Google Analytics to track stats on their website:
Ever wondered why your webpage whinges you’ve got insecure content on it when you view it via https ?
I dunno if it’s buried deep in one of their FAQs, but here’s how to fix that:
Instead of using
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "Your-Account-Code";
urchinTracker();
</script>
use
<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "Your-Account-Code";
urchinTracker();
</script>
Even on insecure pages! Doesn’t matter. It works.
Tags: Analytics, Google, Programming, Web
14.Oct.07
Web / Programming
Comments (0)