How To: Configure Consent Directly in your Website

A step-by-step technical guide for setting up opt-outs for CCPA's Data Sales in your website

California's Consumer Privacy Act (CCPA), requires organizations to offer consumers the right to opt out of data processing for sales.

This step-by-step guide walks you through how to configure Ethyca to automatically manage consent to Data Sales for your users.

This guide focuses on the technical integration for CCPA "Do Not Sell" and assumes you are already familiar with the steps for creating your Data Sales Data Use Case and adding the necessary Consent Flags. These are both required steps for completing your implementation.

Implementing Consent directly in your Website

Note: This configuration is for websites that are 'vanilla', that is to say you are loading your pixels directly in your website <head></head> area and are not using Google Tag Manager (GTM), Adobe Tag Manager or Segment.

If you are installing the Ethyca consent pixel on your website, add the code below within the <head></head> of any page on your site which requires consent management.

This must be placed above any pixels it will affect, for example, please ensure this is pasted above Facebook, Google or other Ad Platform Pixels.

<!-- Ethyca Management Platform -->  
    <script language='javascript' type='text/javascript' src='https://harpocrates.ethyca.com/emp.js'></script>  
<!-- End Ethyca Management Platform -->

Configuring Limited Data Use for Facebook

You will need to make minor modifications to your pixel in order to implement the Facebook Limited Data Use flag as follows:

a) Edit your Facebook Pixel to add the following items:

791791

b) Add the line below BEFORE fbq('init', '00000000000');

ethyca.GROUP4 ? fbq('dataProcessingOptions', []) : fbq('dataProcessingOptions', ['LDU'], 1, 1000);

This line checks the value of ethyca.GROUP4 consent and depending on whether it's true or false will opt a user out of dataProcessing for Facebook or include them in dataProcessing.

If your Facebook pixel is using the <noscript></noscript> for non-javascript browsers, please remove this from your pixel. Consent Management solutions, like Ethyca, rely on Javascript and this pixel would risk firing causing non-compliance. As such, if the following is present, please remove it:

<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=000000000&ev=PageView&noscript=1"/></noscript>

Technical Guide

Please visit each of the below support articles if your business manages pixels in any additional locations:

For QA instructions, check out our how to guide for testing Consent for CCPA's Data Sales.

Support

Please contact [email protected] if you have any questions regarding your implementation.