Oxygen doesn't grow on trees.

Posts tagged ‘ga.js’

Forcing Google Analytics to use SSL

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']);