Highlighted

How can I force the Google Analytics Tag to fire via SSL?

3 REPLIES 3
Highlighted

How can I force the Google Analytics Tag to fire via SSL?

Tealium Employee
Hi @Michael_Kim_shc,

The most recent versions of the Google Analytics tag template do this by default (all templates published within the last 6-8 months). All you need to do is upgrade to the latest template, and the analytics.js file will load over SSL.

See here for information on checking your template version and upgrading:

https://community.tealiumiq.com/t5/Tealium-iQ-Tag-Management/How-do-I-update-a-tag-template/ta-p/283...
https://community.tealiumiq.com/t5/Tealium-iQ-Tag-Management/Tag-Status-Checker/ta-p/5127

Craig.
Check out our new Swift integration library for iOS, macOS, tvOS and watchOS: https://github.com/Tealium/tealium-swift with updated
documentation https://community.tealiumiq.com/t5/Swift/tkb-p/swift.
Highlighted

How can I force the Google Analytics Tag to fire via SSL?

Silver Contributor
Silver Contributor

If you are in a situation where you have a heavily customized template and you need to manually update the tag to fire via SSL (I beleive the older tags inherit the security protocol of your site) you should be able to do so by updateing the loader function:

u.loader({"type": "script",  "src": 'https://www.google-analytics.com/analytics.js',  "loc": "script", "id": id });

Otherwise I think the above answer would be the best practice.

If I have seen further it is by standing on the shoulders of giants
Highlighted

How can I force the Google Analytics Tag to fire via SSL?

Tealium Employee
Very good point @brian_greig, and your answer is exactly right :-)
Check out our new Swift integration library for iOS, macOS, tvOS and watchOS: https://github.com/Tealium/tealium-swift with updated
documentation https://community.tealiumiq.com/t5/Swift/tkb-p/swift.