Skip to content

Commit a75162e

Browse files
committed
doc: Always load Google Analytics script over secure connection
Even if the site is not loaded over HTTPS, it’s good practice to load assets over HTTPS if that is possible.
1 parent 7777f0c commit a75162e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/_templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
(function() {
1111
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
12-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
12+
ga.src = 'https://ssl.google-analytics.com/ga.js';
1313
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
1414
})();
1515
</script>

0 commit comments

Comments
 (0)