add Klaviyo service
This commit is contained in:
parent
e2c72232c2
commit
78ed15175e
|
|
@ -5326,3 +5326,20 @@ tarteaucitron.services.tiktok = {
|
|||
tarteaucitron.addScript('https://analytics.tiktok.com/i18n/pixel/sdk.js?sdkid=' + tarteaucitron.user.tiktokId);
|
||||
}
|
||||
};
|
||||
|
||||
// Klaviyo
|
||||
tarteaucitron.services.klaviyo = {
|
||||
"key": "klaviyo",
|
||||
"type": "ads",
|
||||
"name": "Klaviyo",
|
||||
"uri": "https://help.klaviyo.com/hc/en-us/articles/360034666712-About-Cookies-in-Klaviyo",
|
||||
"needConsent": true,
|
||||
"cookies": ['__kla_id'],
|
||||
"js": function () {
|
||||
"use strict";
|
||||
if (tarteaucitron.user.klaviyoCompanyId === undefined || klCustomer === undefined) {
|
||||
return;
|
||||
}
|
||||
tarteaucitron.addScript('//static.klaviyo.com/onsite/js/klaviyo.js?company_id=' + tarteaucitron.user.klaviyoCompanyId);
|
||||
}
|
||||
};
|
||||
Loading…
Reference in New Issue