<< Universal Search and What it Means to SEO’ers
How to "SEO" e-commerce URLs >>

How to use Google Analytics with HTTPS

sphinn-logo

After you've spent the last 30 minutes shopping online for that new movie DVD or gift idea for ma's birthday and you've got your credit card ready in hand, you end up at a payment/checkout page that says "warning: this page contains secure and non-secure items. Select yes to continue". Still feel like giving out your credit card info? Yea, me neither. This is usually the case when an HTTPS web page references items from the HTTP protocol - or more specifically - when the web master has placed the standard Google Analytics code onto the HTTPS page.

Google has analytics tracking code specifically for HTTPS pages, and to my surprise, the same HTTPS code will work when placed on non secure pages:

You can add this secure code to both secure and non-secure pages of your site

Straight from their website. Pretty nifty, so why even bother with the non secure (HTTP) analytics tracking code? I asked a Google representative that very same question and they said it was from a time before HTTPS tracking was in demand and a new version of the tracking was in development... ok, so we'll have to change it again some day? Happy tracking until then!

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

Need SEO services or help growing your company's web presence?  Contact Best Rank now