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. CPRA, VCDPA, and CPA require organizations offer consumers the rights to opt out of data sharing or in to sensitive data processing.

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

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


When implementing a use case for processing sensitive personal information, ensure that any third party integrations take the GROUP6 flag into account. If third parties collect sensitive personal information, this information cannot be processed without without explicit opt-in consent from the user.

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=''></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:


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=""/></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.


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