How to Add a Cookie Policy to Wix
Last updated on August 12, 2026
On this page
Prerequisites
After you sign up, you'll be directed to the installation screens. You can install the cookie banner to stay GDPR compliant, or skip this step and go directly to the CookieYes dashboard if you prefer to create a cookie policy first.
However, note that the cookie banner script must be installed on your website, with a completed scan, for the detected cookie list and related details to appear on the cookie policy page.
How to generate a cookie policy for a Wix website
Method 1: Access the Cookie Policy Generator from the CookieYes app inside Wix
- Log in to your Wix dashboard.
- From the left sidebar, go to Apps and select CookieYes GDPR Cookie Banner.

- In the CookieYes dashboard, click Legal Policies in the top navigation bar and select Cookie Policy Generator.

Method 2: Access the Cookie Policy Generator from the CookieYes web app
- Log in to your CookieYes account.
- From the top navigation menu, click Legal Policies and select Cookie Policy Generator.

Generate and publish your cookie policy
Step 1: Choose language settings

Select a language that matches the main content of your website for consistency and a better user experience.
You can select multiple languages, but you’ll need to upgrade your plan before generating the policy. This feature is available only for Basic, Pro, and Ultimate subscription plans.

Step 2: Define the “About cookies” section


Step 3: Explain how cookies are used

Step 4: Review the types of cookies used


Refer: Scan Your Website
Step 5: Configure cookie preferences for users

Step 6: Generate and Add the Cookie Policy to Your Website

Add the cookie policy to your Wix website
Wix supports only the HTML format method for adding your cookie policy. The One-click install and Code snippet methods are not supported on Wix.
Step 1: Copy the cookie policy code
- Choose the HTML format method.

- Select the language.
- Click the Copy code to copy the generated HTML code.
Use the Send code to a teammate option if someone else manages your website content.
Step 2: Create a Cookie Policy page in Wix
- Head to your Wix account and open your site’s Dashboard. Then select Edit Site.

- To add a new page to your site, select the Pages & Menu icon from the side panel. Now click +Add Page.

- Select +Blank Page and add the name as ‘Cookie Policy’ in the title field and click Done.

Step 3: Embed the cookie policy on the page
- In the newly created page, click on the Add (+) from the side panel and then select Embed code > Embed HTML.

- Select the HTML block, click Enter Code and paste the copied cookie policy code.

- Click Update.
Step 4: Enable the Cookie Settings button
- Locate the anchor element with the inner text Cookie Settings in the embedded HTML code.Locate the anchor element with the inner text "Cookie Settings" within the HTML code of your Cookie Policy page.

- Replace it with the following code snippet:<a class="cky-banner-element" onclick="window.parent.postMessage({message:'cookieyes-settings'}, 'https://parent-domain.com/')">Cookie Settings</a>
- Replace https://parent-domain.com with your website domain.
- Click the Update button to apply the changes.
Step 5: Display the cookie audit table
<!-- start cookie policy page script -->
<script type="text/javascript">
(() => {
function e(t, n) {
const a = document.getElementsByClassName(t);
if (a) return n(a);
setTimeout(() => {
e(t, n);
}, 500);
}
window.addEventListener &&
window.addEventListener("load", () => {
e("cky-audit-table-element", () => {
window.parent.postMessage(
{ message: "get-audit-table" },
"https://parent-domain.com"
);
});
});
window.addEventListener(
"message",
(e) => {
if (
"https://parent-domain.com" !== e.origin &&
"audit-table-content" !== e.data.message
)
return;
document.getElementsByClassName(
"cky-audit-table-element"
)[0].innerHTML = e.data.html;
document.head.insertAdjacentHTML(
"beforeend",
`<style id="cky-audit-table-style">${e.data.style}</style>`
);
},
false
);
})();
</script>
<!-- end cookie policy page script -->
Add custom code in Wix settings
1. Add the following custom code in Wix Settings. Replace https://iframe-domain.filesusr.com with your iframe domain.
<script>
(() => {
function e(t, n, i = false, o = false) {
const s = o ? document.getElementById(t) : document.querySelector(t);
if (s && !i || (s && i && ["", " ", " "].indexOf(s.innerHTML) === -1)) return n(s);
setTimeout(() => {
e(t, n, i, o);
}, 500);
}
window.addEventListener("load", () => {
document.body.insertAdjacentHTML(
"afterBegin",
'<div class="cky-audit-table-element" style="display: none;"></div>'
);
});
window.addEventListener("message", (t) => {
if ("https://iframe-domain.filesusr.com" !== t.origin) return;
if (t.data.message === "cookieyes-settings") {
window.revisitCkyConsent();
return;
}
if (t.data.message === "get-audit-table") {
e('[title="Embedded Content"]', (t) => {
e(".cky-audit-table-element", (n) => {
e("cky-audit-table-style", (e) => {
t.contentWindow.postMessage(
{
html: n.innerHTML,
style: e.innerHTML,
message: "audit-table-content",
},
"https://iframe-domain.filesusr.com"
);
}, true, true);
}, true);
});
}
}, false);
})();
</script>
2. If you have provided any text in the field “What’s in the embed?” of HTML Settings where you have inserted the cookie policy code, you need to replace the attribute value of title="Embedded Content" conditional check within the event listener (line 25) of the above code snippet.


<script>
(() => {
function e(t, n, i = false, o = false) {
const s = o ? document.getElementById(t) : document.querySelector(t);
if (s && !i || (s && i && ["", " ", " "].indexOf(s.innerHTML) === -1)) return n(s);
setTimeout(() => {
e(t, n, i, o);
}, 500);
}
window.addEventListener("load", () => {
document.body.insertAdjacentHTML(
"afterBegin",
'<div class="cky-audit-table-element" style="display: none;"></div>'
);
});
window.addEventListener("message", (t) => {
if ("https://iframe-domain.filesusr.com" !== t.origin) return;
if (t.data.message === "cookieyes-settings") {
window.revisitCkyConsent();
return;
}
if (t.data.message === "get-audit-table") {
e('[title="Demo Content"]', (t) => {
e(".cky-audit-table-element", (n) => {
e("cky-audit-table-style", (e) => {
t.contentWindow.postMessage(
{
html: n.innerHTML,
style: e.innerHTML,
message: "audit-table-content",
},
"https://iframe-domain.filesusr.com"
);
}, true, true);
}, true);
});
}
}, false);
})();
</script>