From eeaa77de33640b63a4b06d62a0d1508efbf9e01f Mon Sep 17 00:00:00 2001 From: Christian Oliff Date: Tue, 24 Apr 2018 16:45:13 +0900 Subject: [PATCH] Always load Google Analytics over HTTPS Recommended by Google - and is safer and faster --- tarteaucitron.services.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 81ea5c7..761209f 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -854,7 +854,7 @@ tarteaucitron.services.analytics = { }; window.ga.l = new Date(); - tarteaucitron.addScript('//www.google-analytics.com/analytics.js', '', function () { + tarteaucitron.addScript('https://www.google-analytics.com/analytics.js', '', function () { ga('create', tarteaucitron.user.analyticsUa, {'cookieExpires': 34128000}); ga('send', 'pageview'); if (typeof tarteaucitron.user.analyticsMore === 'function') { @@ -876,7 +876,7 @@ tarteaucitron.services.gtag = { "use strict"; window.dataLayer = window.dataLayer || []; - tarteaucitron.addScript('//www.googletagmanager.com/gtag/js?id=' + tarteaucitron.user.gtagUa, '', function () { + tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + tarteaucitron.user.gtagUa, '', function () { function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', tarteaucitron.user.gtagUa);