From 8833c2bdab80bb201b53495af6bdbe27a21163c9 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Sat, 28 Oct 2023 15:43:01 +0200 Subject: [PATCH] Add Equativ Fix #1166 --- tarteaucitron.services.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 90424399..dc0f9986 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -37,6 +37,25 @@ tarteaucitron.services.iframe = { } }; +// equativ +tarteaucitron.services.equativ = { + "key": "equativ", + "type": "ads", + "name": "Equativ", + "uri": "https://equativ.com/", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + + if (tarteaucitron.user.equativId === undefined) { + return; + } + + tarteaucitron.addScript('https://ced.sascdn.com/tag/' + tarteaucitron.user.equativId + '/smart.js'); + } +}; + // twitch tarteaucitron.services.twitch = { "key": "twitch",