Working with The Krux JavaScript API

The Krux/Salesforce DMP platform provides a JavaScript API to set consent for users. Details on the various use cases and the use of Krux's namespaces can be found at the following URL. https://konsole.zendesk.com/hc/en-us/articles/360000754674-JavaScript-Consent-Tag-Spec‚Äč

This article shows how you can use the API provided by Krux in the Sourcepoint Consent and Reject actions fields in order to generate consent using the Krux cookie.

Step 1 Add Krux to the vendor list In the Vendor List section of the site click on the "Add Vendors" button and search for Krux Digital and add them to the vendor list (see screenshot).

Step 2 Add the Krux API calls to the Consent and Reject Actions for the Krux vendor. After adding the Krux vendor to the list, click on vendor to bring up the "Consent and Reject" window.

Krux('ns:mynamespace', 'consent:set', {
dc: true,
al: true,
tg: true,
cd: false,
sh: false,
re: false
}, function(errors, body) {
if (errors) {
console.error(errors);
} else {
console.log('Successfully set consent flags.');
}
});

Example: Reject Consent for Krux

Krux('ns:mynamespace', 'consent:set', {
dc: false,
al: false,
tg: false,
cd: false,
sh: false,
re: false
}, function(errors, body) {
if (errors) {
console.error(errors);
} else {
console.log('Successfully set consent flags.');
}
});

Please confirm the implementation of the code with your Krux/Salesforce team to ensure that they are receiving the correct signals. Detailed documentation can be found at https://konsole.zendesk.com/hc/en-us/articles/360000754674-JavaScript-Consent-Tag-Spec