Overview
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.
Implementation
Follow these steps to set up an Audit to look for the Do Not Sell/Share link on each page of the Audit:
Create a simple Audit to scan pages on your website.
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');
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.
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:
GDPR (General Data Protection Regulation):
Official website: https://eur-lex.europa.eu/eli/reg/2016/679/oj
Information and guidance for businesses: https://ec.europa.eu/info/law/law-topic/data-protection_en
Overview and resources: https://gdpr-info.eu/
CCPA (California Consumer Privacy Act):
Official website: https://oag.ca.gov/privacy/ccpa
Summary and explanation: https://iapp.org/resources/article/what-the-ccpa-means-for-consumer-privacy/
Guidelines for businesses: https://oag.ca.gov/privacy/ccpa-businesses
CPRA (California Privacy Rights Act):
Official website: https://oag.ca.gov/privacy/cpra
Summary and explanation: https://iapp.org/resources/article/what-is-the-california-privacy-rights-act-cpra/
Guidelines for businesses: https://oag.ca.gov/privacy/cpra-businesses