In this article
A guide integrating with Sourcepoint CMP.
Important: This code is provided "as is", without warranty of any kind, express or implied. In no event shall Permutive be liable for any claim, damages, updates, or other liability.
As Permutive is a data processor and not a controller, it is important that Publishers collect consent for themselves in order to trigger Permutives technology. To seamlessly integrate Permutive with your Sourcepoint CMP, we recommend completing the following steps to finalise integration, exclusive of having Permutive’s IAB vendors in your Vendor List.
Sourcepoint clients can use Consent & Reject actions to inject a Javascript function which will trigger Permutive once users have made a choice; whether that be consent or rejection.
Add your organisation to your vendor list as a Custom Vendor
First, each Publisher needs to have their own Custom Vendor added to the Sourcepoint Custom Vendor Library via your account manager.
Please email this request to support@sourcepoint.zendesk.com if your Organisation is not available in the Custom Vendor Library. Please provide a link to your Privacy Policy in this request.
Once your account manager has added your organisation to the Sourcepoint Custom Vendor Library, add this vendor to your vendor list and implement the following Consent and/or Reject Action.
Set up steps:
Update consent required:
Assuming you already have the Sourcepoint main tag deployed to your site, add the following code to the <head> tag of your javaScript. Just below the Sourcepoint tag. The following code will set consent to true or false, depending on whether GDPR applies:
<script type="text/javascript">
__tcfapi('getTCData',2,(tcData, success) => { if (tcData.gdprApplies) { localStorage.setItem("consent_applies", "true"); } else { __uspapi('getCustomVendorRejects', 1 ,(uspData, success) => { if (uspData.ccpaApplies) { localStorage.setItem("consent_applies", "true"); } else { localStorage.setItem("consent_applies", "false"); } }); } }); if (localStorage.getItem("consent_applies") === null || typeof localStorage.getItem("consent_applies") === "undefined" || localStorage.getItem("consent_applies") === "true") { consent_applies = true; } else { consent_applies = false; }
</script>
Update Permutive Main SDK Tag:
Update the "consentRequired" property being passed within the Permutive SDK tag, which can be located within the <head> of your javaScript code, to the following:
{ "consentRequired": consent_applies }
Consent Action:
1. Login to the Sourcepoint portal and navigate to your vendor list
2. Search for your organisations vendor in your vendor list and open up the settings by clicking on the name on the left hand side:
- Go to Consent Actions and paste the following to Custom JS and apply changes:
permutive.consent({ "opt_in": true, "token": <YOUR_CONSENT_TOKEN_HERE> });
Reject Action:
4. Login to the Sourcepoint portal and navigate to your vendor list
5. Search for your organisations vendor in your vendor list and open up the settings by clicking on the name on the left hand side:
6. Go to Consent Actions and paste the following to Custom JS and apply changes:
permutive.consent({ "opt_in": false });
If you have any questions, please reach out to your Solutions Architect.
Comments
0 comments
Please sign in to leave a comment.