Skip to content

Instantly share code, notes, and snippets.

@TobiasChe
Created August 26, 2015 18:17
Show Gist options
  • Save TobiasChe/5724d0911e4de6caf8ec to your computer and use it in GitHub Desktop.
Save TobiasChe/5724d0911e4de6caf8ec to your computer and use it in GitHub Desktop.
Force SSL for Google tracking
_gaq.push(['_setAccount', 'UA-12345-1']);
_gaq.push(['_gat._forceSSL']); // Send all hits using SSL, even from insecure (HTTP) pages.
_gaq.push(['_trackPageview']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment