Permissions:
Vendor list-GDPR or Vendor list-U.S. Privacy or Vendor list - U.S. Multi-State
The Krux/Salesforce DMP platform provides a JavaScript API to set consent for end-users. In this article, we will cover how your organization can utilize The Krux API within consent and reject action fields to generate consent for the end-user.
Example Krux API calls
In this section, we provide your organization with an example for a Krux API call to use for a consent/reject action or opt in/opt out hooks, respectively.
Note: We strongly recommend reviewing the additional information on use cases and Krux namespaces.
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.');
}
});
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.');
}
});
Add Krux API calls
In this section, we will cover how to add the Krux API call to a vendor list. Navigate to your Sourcepoint account and click Vendor Management on the left-hand panel and select a regulatory framework from the menu.
Click a vendor list on the subsequent list.
Note: Ensure that the vendor Salesforce (KRUX) is added to the vendor list.
Click Salesforce (KRUX) from the list of vendors.
From the subsequent modal, select either Consent Actions or Reject Actions and navigate to the provided Custom JS field.
Input the appropriate Krux API call in the field and click Apply changes when finished.
Confirm the implementation with your Krux/Salesforce team to ensure that they are receiving the correct signals.
Click the Opt In/Opt Out Hooks tab and ensure Vendor is selected on the subsequent page.
Click + Add Hook.
Select Salesforce (KRUX) from the provided dropdown menu and click either Opt In Hooks or Opt Out Hooks.
Input the appropriate Krux API call in the field and click Apply changes when finished.
Confirm the implementation with your Krux/Salesforce team to ensure that they are receiving the correct signals.
Comments
0 comments