From 256e440143f84ac26c241fc509496d2d27d958a3 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Mon, 18 May 2020 19:10:55 +0200 Subject: [PATCH 1/3] Add support for multiple Google Tag containers --- tarteaucitron.services.js | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 8fad438..50adc06 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -1372,6 +1372,32 @@ tarteaucitron.services.googletagmanager = { } }; +// google tag manager multiple +tarteaucitron.services.multiplegoogletagmanager = { + "key": "multiplegoogletagmanager", + "type": "api", + "name": "Google Tag Manager", + "uri": "https://adssettings.google.com/", + "needConsent": true, + "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'], + "js": function () { + "use strict"; + if (tarteaucitron.user.multiplegoogletagmanagerId === undefined) { + return; + } + window.dataLayer = window.dataLayer || []; + window.dataLayer.push({ + 'gtm.start': new Date().getTime(), + event: 'gtm.js' + }); + + tarteaucitron.user.multiplegoogletagmanagerId.forEach(function (id) { + tarteaucitron.addScript('https://www.googletagmanager.com/gtm.js?id=' + id); + }); + + } +}; + // google webfonts tarteaucitron.services.googlefonts = { "key": "googlefonts", @@ -3044,4 +3070,3 @@ tarteaucitron.services.userlike = { tarteaucitron.addScript('//userlike-cdn-widgets.s3-eu-west-1.amazonaws.com/' + tarteaucitron.user.userlikeKey); } }; - From ebe44e2972ef9cdda3361254be1ee9b2809bd875 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Thu, 18 Jun 2020 17:20:50 +0200 Subject: [PATCH 2/3] Update GetQuanty cookies list --- tarteaucitron.services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 8221d19..2c7650f 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -3027,7 +3027,7 @@ tarteaucitron.services.getquanty = { "name": "GetQuanty", "uri": "https://www.getquanty.com/mentions-legales/", "needConsent": true, - "cookies": [], + "cookies": ['_first_pageview', 'eqy_sessionid', 'eqy_siteid','cluid','eqy_company', 'cluid', 'gq_utm', '_jsuid'], "js": function () { "use strict"; if (tarteaucitron.user.getguanty === undefined) { From 770195a3a7fb89f855ea9f780d4829a2a0c2ec56 Mon Sep 17 00:00:00 2001 From: NielsTRS <40001070+NielsTRS@users.noreply.github.com> Date: Fri, 26 Jun 2020 00:16:51 +0200 Subject: [PATCH 3/3] Fix padding css Fix small problem with padding on #tarteaucitronAlertBig because the text was larger than the device size (on phone) --- css/tarteaucitron.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css/tarteaucitron.css b/css/tarteaucitron.css index 068763f..701f2fb 100644 --- a/css/tarteaucitron.css +++ b/css/tarteaucitron.css @@ -492,7 +492,7 @@ div#tarteaucitronServices { box-sizing: content-box; z-index: 2147483645; text-align: center; - padding: 10px; + padding: 10px 0 10px 0; margin: auto; width: 100%; }