How to Add a Cookie Policy to Wix
Last updated on October 9, 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
Option 1: Hosted URL
Step 1: Copy the hosted URL
If someone else manages your website, click Send URL to a teammate to share the link with them.
Step 2: Add the link to Wix
- Log in to your Wix account.
- On your site's dashboard, click Edit Site.
- Scroll to the footer of any page. The footer appears on every page of your site.
- In the side panel, click Add (+) > Text, then drag a text box into the footer.

- Enter Cookie Policy as the text.
- Select the text, then click the Link icon in the text settings.
- Select Web Address. Paste the hosted URL, then click Done.

- Click Publish.
Option 2: HTML format
Step 1: Copy the HTML
- In the modal, select HTML format.

- Select your preferred language.
- Click Copy code.
Use the Send code to a teammate option if someone else manages your website content.
Step 2: Create a policy page in Wix
- Log in to your Wix account
- On your site's dashboard, click Edit Site.

- In the side panel, click the Pages & Menu icon, then click + Add Page.

- Select + Blank Page. Enter the title Cookie Policy, then click Done.

Step 3: Add the HTML
- In the side panel of the new page, click Add (+), then select Embed Code > Embed HTML.

- Select the HTML block, then click Enter Code.

- Paste the HTML into the code field, then click Update.
To remove the Cookie Policy heading at the top of the page, delete the following line from the HTML code: <h1 class="cookie-policy-h1">Cookie Policy</h1>
Step 4: Enable the Cookie Settings button
- In the embedded HTML, find the anchor element with the inner text Cookie Settings.

- Replace it with the following code:<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, then click Update.
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
In your Wix site Settings, add the following custom code.
Replace
https://iframe-domain.filesusr.comwith your iframe domain. To find your iframe domain, see How to retrieve the iframe domain from the Wix website?.
<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>
3. 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>

