Mouth
Well-known member
Suggest the following addition:
By default, Google Analytics will match the protocol of the host page when sending outbound requests. To force Google Analytics to always send data using SSL, even from insecure pages (HTTP), set the forceSSL field to true:
ga('create','UA-XXXX-Y','auto');
ga('set','forceSSL',true); // Send all data using SSL, even from insecure (HTTP) pages.
ga('send','pageview');