Google Analytics - New Tracking code

Jun 29, 2008

I've been using Google Analytics since its inception, but recently I ran into a need to have their tracking script to be able to detect SSL connections. Their original Javascript code, which is simply using the older Urchin script, didn't have a way to do this. Luckily, there was an easy solution.

Google came out with a new version of that Javascript code last year. The older code will continue to work but will not be updated. The newer version includes a number of nice features including SSL detection, Customized tracking and Cross-domain tracking.

This new code snippet is in beta (like everything in Google land). The PDF explaining the features is at http://www.google.com/analytics/GATCmigrationguide.pdf. This may be old news for some, but I figure it was worth a post.

Comments

Write your comment



(it will not be displayed)