Merge pull request #939 from alexandrebrubeyonds/klaviyo
add Klaviyo service
This commit is contained in:
commit
c98a0e9bd2
|
|
@ -5326,3 +5326,20 @@ tarteaucitron.services.tiktok = {
|
||||||
tarteaucitron.addScript('https://analytics.tiktok.com/i18n/pixel/sdk.js?sdkid=' + tarteaucitron.user.tiktokId);
|
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) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
tarteaucitron.addScript('//static.klaviyo.com/onsite/js/klaviyo.js?company_id=' + tarteaucitron.user.klaviyoCompanyId);
|
||||||
|
}
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue