瀏覽代碼

Always load Google Analytics over HTTPS

Recommended by Google - and is safer and faster
Christian Oliff 7 年之前
父節點
當前提交
eeaa77de33
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tarteaucitron.services.js

+ 2 - 2
tarteaucitron.services.js

@@ -854,7 +854,7 @@ tarteaucitron.services.analytics = {
         };
         };
         window.ga.l = new Date();
         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('create', tarteaucitron.user.analyticsUa, {'cookieExpires': 34128000});
             ga('send', 'pageview');
             ga('send', 'pageview');
             if (typeof tarteaucitron.user.analyticsMore === 'function') {
             if (typeof tarteaucitron.user.analyticsMore === 'function') {
@@ -876,7 +876,7 @@ tarteaucitron.services.gtag = {
         "use strict";
         "use strict";
         window.dataLayer = window.dataLayer || [];
         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);}
             function gtag(){dataLayer.push(arguments);}
             gtag('js', new Date());
             gtag('js', new Date());
             gtag('config', tarteaucitron.user.gtagUa);
             gtag('config', tarteaucitron.user.gtagUa);