Skip to main content
All CollectionsData Subject Requests
How do I embed a Do Not Sell My Info Button on a Wix website?
How do I embed a Do Not Sell My Info Button on a Wix website?
Updated over a month ago

1. On your Wix website, add a Themed Button or Text Button

2. Edit the button text to say "Do Not Sell My Info" (Make sure the text is case sensitive, it must also include the spaces.)

3. Open Tracking Tools & Analytics on your Wix portal. Copy the snippet code below and paste into a custom script.

<script>window.addEventListener("onWidgetLoadComplete",function(){let e=document.querySelectorAll('div[role="button"]');for(let o of e)"Do Not Sell My Info"===o.innerText&&window.displayPreferenceModal&&(o.onclick=window.displayPreferenceModal);let o=document.querySelectorAll('button[aria-label="Do Not Sell My Info"]');for(let e of o)e.onclick=window.displayPreferenceModal}); </script>

Next, choose the specific page you want your cookie preference button. Then select Body - end.

Your cookie preference center should now be accessible on your Wix site.

Did this answer your question?