Note: Before you implement the Cookie Preference Button on Wix, make sure you have installed the consent banner code snippet correctly.


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


2. Edit the button text to say 'Cookie Preferences Button'



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

<script>

window.addEventListener("onWidgetLoadComplete",function(){let e=document.querySelectorAll('div[role="button"]');for(let o of e)"Cookie Preference Button"===o.innerText&&window.displayPreferenceModal&&(o.onclick=window.displayPreferenceModal);let o=document.querySelectorAll('button[aria-label="Cookie Preference Button"]');for(let e of o)e.onclick=window.displayPreferenceModal}); 

</script>


a. Next, choose the page you want your Cookie Preferences button on.

b. Then select Body - end.



Your cookie preferences center should now be accessible on your Wix site!


If you are still experiencing issues, please reach out to support@termly.io for more help.


Access the Cookie Consent Manager.