From b7f5e579d59258d3606143fbec64113502f64528 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Wed, 30 Oct 2019 09:10:33 +0100 Subject: [PATCH] Add contentsquare --- tarteaucitron.services.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index de763aa..6cbf277 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -454,6 +454,23 @@ tarteaucitron.services.clicmanager = { } }; +// contentsquare +tarteaucitron.services.contentsquare = { + "key": "contentsquare", + "type": "api", + "name": "ContentSquare", + "uri": "https://docs.contentsquare.com/uxa-en/#collected-data", + "needConsent": true, + "cookies": ['_cs_id', '_cs_s', '_cs_vars', '_cs_ex', '_cs_c', '_cs_optout'], + "js": function () { + "use strict"; + if (tarteaucitron.user.contentsquareID === undefined) { + return; + } + tarteaucitron.addScript('//t.contentsquare.net/uxa/'+tarteaucitron.user.contentsquareID+'.js'); + } +}; + // crazyegg tarteaucitron.services.crazyegg = { "key": "crazyegg",