As part of California Consumer Privacy Act (CCPA), you are required to provide explicit notice to California residents including providing a link for them to opt out of data sale with a "Do Not Sell My Information" link in a conspicuous location.
By default, Mediavine will display a button only to your California users that allow them to easily opt out of data sale with a link above the fold on all sites.
In your Dashboard, you're able to change the location of your button, including an option for no auto insertion, or publisher chosen (Settings > Privacy). This guide will help you place you make your own links.
Okay, so how do you add a CCPA link?
data-name="mediavine-ccpa-button" to any HTML element and we'll automatically link that object to open the Mediavine CCPA CMP pop-up on click.
For example, you can add this attribute to an anchor tag:
<a data-name="mediavine-ccpa-button">Do Not Sell My Personal Information</a>
You can also add this to any other element, including a div or a button with the same code:
<button data-name="mediavine-ccpa-button">Do Not Sell My Personal Information</a>
One additional caveat: Our CCPA CMP is ONLY loaded for California users, so your button will only work for users in California.
You can always test its functionality by adding
?test=ccpa to any URL on your site.