From 473d901ba19c90069e853a3ef77489ee72d3ca4a Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Thu, 15 Apr 2021 08:16:28 +0200 Subject: [PATCH] Add sharpspring --- tarteaucitron.services.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 9c9d0d4..24992d9 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -31,6 +31,30 @@ tarteaucitron.services.iframe = { } }; +// sharpspring +tarteaucitron.services.sharpspring = { + "key": "sharpspring", + "type": "analytic", + "name": "SharpSpring", + "uri": "https://sharpspring.com/legal/sharpspring-cookie-policy/", + "needConsent": true, + "cookies": ['koitk', '__ss', '__ss_tk', '__ss_referrer'], + "js": function () { + "use strict"; + + if (tarteaucitron.user.sharpspringAccount === undefined || tarteaucitron.user.sharpspringForm === undefined) { + return; + } + + window.ss_form = {'account': tarteaucitron.user.sharpspringAccount, 'formID': tarteaucitron.user.sharpspringForm}; + window.ss_form.width = '100%'; + window.ss_form.height = '1000'; + window.ss_form.domain = tarteaucitron.user.sharpspringUrl; + + tarteaucitron.addScript('https://' + tarteaucitron.user.sharpspringUrl + '/client/form.js?ver=2.0.1'); + } +}; + // pardot tarteaucitron.services.pardot = { "key": "pardot",