Innerlogics

Forcing Google Analytics to use SSL

July 2, 2013 Share
security

The documentation is somewhat incomplete on how to force Google Analytics to use SSL when working with the ga.js tracker (using asynchronous syntax). When using analytics.js, a simple call to set forceSSL is sufficient.

The correct syntax is

_gaq.push(['_gat._forceSSL']);

Read other posts
← We don't have the technology Paul Graham: Do Things that Don't Scale →