Skip to main content
All CollectionsTroubleshooting
Is a “Do Not Sell/Share” link present on all applicable pages?
Is a “Do Not Sell/Share” link present on all applicable pages?
Luiza Gircoveanu avatar
Written by Luiza Gircoveanu
Updated over a week ago


Every company needs to have a "do not sell/share" link present on all of their website pages to comply with data privacy laws such as the California Consumer Privacy Act (CCPA) and the General Data Protection Regulation (GDPR).

This link allows individuals to opt-out of the sale or sharing of their personal information, providing them with greater control over their data and protecting their privacy rights. You can create an Audit to check your site for any pages missing the Do Not Sell/Share link.


Follow these steps to set up an Audit to look for the Do Not Sell/Share link on each page of the Audit:

  1. Create a simple Audit to scan pages on your website.

  2. Create an On-page Action with an execute action type and paste in the following code:

//add a CSS Selector to match your do not sell/share link e.g. [href*='do-not-sale-share'] let cssSelector = "INSERT CSS SELECTOR HERE"; ([...document.querySelectorAll(cssSelector)].length > 0) ? console.log('Do Not Sell/Share link was found') : console.log('Do Not Sell/Share was NOT found');
  1. Modify the code where it says "INSERT CSS SELECTOR HERE" line with your own CSS selector to match the do not sell/share link on your site.

  2. Save and run the Audit.

Note: We recommend you test the JavaScript snippet in the developer console in your browser to test the results before you run the Audit.

Note: This code exclusively outputs information to the Console Log. If you wish to capture and collect this information through the ObservePoint Data tag, refer to the provided template in this help document: OP Custom Tag - Setting up Do Not Sell/Share Links

Once the Audit run is complete, you can go to the Browser Console Logs report and filter by console messages. See the script above for examples.

To be automatically notified, create an alert from the Browser Console Logs report. First, filter by the message that you do not want to see e.g. "Do Not Sell/Share link was NOT found", then alert if the number of pages (after filtering) exceeds 0.

Data Privacy Law Information

Here are some useful links for information on GDPR, CCPA, and CPRA regulations:

  1. GDPR (General Data Protection Regulation):

  2. CCPA (California Consumer Privacy Act):

  3. CPRA (California Privacy Rights Act):

Did this answer your question?