diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index aac7ec8..78032d7 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -66,6 +66,35 @@ tarteaucitron.services.plezi = { } }; + +// smartsupp +tarteaucitron.services.smartsupp = { + "key": "smartsupp", + "type": "support", + "name": "Smartsupp", + "uri": "https://www.smartsupp.com/help/privacy/", + "needConsent": true, + "cookies": ['ssupp.vid', 'ssupp.visits', 'AWSALB', 'AWSALBCORS'], + "js": function () { + "use strict"; + + if (tarteaucitron.user.smartsuppKey === undefined) { + return; + } + + window._smartsupp = _smartsupp || {}; + window._smartsupp.key = tarteaucitron.user.smartsuppKey; + window.smartsupp = function() { + window.smartsupp._.push(arguments) + }; + window.smartsupp._ = []; + + tarteaucitron.addScript('https://www.smartsuppchat.com/loader.js'); + } +}; + + + // sharpspring tarteaucitron.services.sharpspring = { "key": "sharpspring",