Add Pardot

This commit is contained in:
Amauri CHAMPEAUX 2021-04-11 10:47:03 +02:00
parent 825f9fd0e1
commit 36c3ee0e4f
1 changed files with 22 additions and 0 deletions

View File

@ -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 // xandr
tarteaucitron.services.xandr = { tarteaucitron.services.xandr = {
"key": "xandr", "key": "xandr",