From 36c3ee0e4fb7a8d29a537280addb72a4e0e35796 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Sun, 11 Apr 2021 10:47:03 +0200 Subject: [PATCH] Add Pardot --- tarteaucitron.services.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index ae3a7cc..40b2829 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -31,6 +31,28 @@ tarteaucitron.services.iframe = { } }; +// pardot +tarteaucitron.services.pardot = { + "key": "pardot", + "type": "analytic", + "name": "Pardot", + "uri": "https://www.salesforce.com/company/privacy/full_privacy/", + "needConsent": true, + "cookies": ['visitor_id'], + "js": function () { + "use strict"; + if (tarteaucitron.user.piAId === undefined || tarteaucitron.user.piCId === undefined) { + return; + } + + window.piAId = tarteaucitron.user.piAId; + window.piCId = tarteaucitron.user.piCId; + window.piHostname = 'pi.pardot.com'; + + tarteaucitron.addScript('https://pi.pardot.com/pd.js'); + } +}; + // xandr tarteaucitron.services.xandr = { "key": "xandr",