How to Add a Cookie Policy to Wix

Last updated on October 9, 2026

This guide will walk you through how you can generate and add a cookie policy page on your Wix website. A cookie policy is a document that provides detailed disclosure about the types of cookies used on a website and their purposes. It can help your website meet transparency requirements under privacy laws such as the GDPR and the ePrivacy Directive.

Prerequisites

Before adding the cookie policy to your Wix site, make sure you have:

  • A CookieYes account (if you don't have one, sign up for free).
  • Admin access to your Wix site dashboard.
Note

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.

You can access the Cookie Policy Generator in two ways:

Both methods use the same Cookie Policy Generator flow.

  1. Log in to your Wix dashboard.
  2. From the left sidebar, go to Apps and select CookieYes GDPR Cookie Banner.wix-dashboard.png
  3. In the CookieYes dashboard, click Legal Policies in the top navigation bar and select Cookie Policy Generator.wix_dahsboard-add-cookie-policy.png

You’ll be redirected to the Cookie Policy Generator for your Wix website.

  1. Log in to your CookieYes account.
  2. From the top navigation menu, click Legal Policies and select Cookie Policy Generator.cookie-policy.png

You’ll be redirected to the Cookie Policy Generator.

Follow the steps below to generate, review, and add your cookie policy to your Wix website.

Step 1: Choose language settings

Select the Primary Language

Choose your preferred primary language for the cookie policy by clicking one of the available options. The selected language will be highlighted with a checkmark.

language setting
Tip

Select a language that matches the main content of your website for consistency and a better user experience.

Enable Multiple Languages (Optional)

Toggle on the Generate policy in multiple languages option. Once enabled, additional language options will appear. Select one or more additional languages from the list.

Note

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.

multiple language

Save and Continue

After selecting your language preferences, click Save draft if you want to save your progress and return later or click Next to proceed to the next step: About cookies.

Save-draft-Next.png

Step 2: Define the “About cookies” section

In this step, you can define the introductory section of your Cookie Policy by explaining what cookies are and why your website uses them.

About cookie

Heading

Use the Heading field to specify a clear title for this section. You may keep the default text or customise it to match your website’s style and tone.

Add or Edit the Description

In the Description field, provide a clear explanation of cookies and their purpose. The default text covers what cookies are, why your website uses them and how they benefit users (such as improving functionality, security and performance). Edit or expand the text to ensure it matches your website’s practices.

Preview the Cookie Policy

Click Preview cookie policy (bottom left of the screen) to review how your content will appear to users. Use this option to confirm clarity, formatting and tone before proceeding.

policy preview

Continue

Click Next to move to Use of cookies.

Step 3: Explain how cookies are used

In this step, you’ll describe how your website uses cookies and explain their purpose to your users.

Heading

In the Heading field, enter a clear and user-friendly title. You can either use the default heading as is or modify it to match your site’s tone and audience.

Description

Use the Description field to explain in detail how your website uses cookies. The default text includes information on the use of first-party cookies (primarily for website functionality) and the role of third-party cookies (such as analysing site performance, tracking user interactions, enhancing security and providing relevant ads). You may update the description as needed to ensure accuracy for your website’s practices.

Save and Continue

When you’re ready, click Next to proceed to the next step, Types of Cookies.

Use of cookie

Step 4: Review the types of cookies used

Heading

In the Heading field, you can keep the default title “Types of cookies we use” or edit it to better reflect your website’s tone and your audience’s expectations.

Type of cookies

Review the cookie list

The cookie list shown here is based on your last website scan. To refresh the list, click Scan again. You’ll be redirected to the Cookie Manager, where you need to click Scan now to run a new scan.

sacn again

Check cookie categories and details
The list organises cookies into categories such as:

  1. Necessary – cookies required for basic site functionality and security.
  2. Functional – cookies enabling features like content sharing or feedback collection.
  3. Analytics – cookies for tracking and analysing visitor interactions.
  4. Performance – cookies for monitoring site performance and improving user experience.
  5. Advertisement – cookies are used to deliver relevant ads.

Each entry includes details about the cookie’s name, duration and purpose. Confirm that the descriptions are clear and accurate.

Proceed

After reviewing the cookie list, click Next to proceed to Cookie Preferences.

Heading

Use the Heading field to title this section. The default text is “Manage cookie preferences”, but you can update it to align with your site's tone or user expectations.

Revisit consent widget code

This section includes a pre-generated HTML snippet that enables users to reopen the consent banner after initial interaction.

Description

The Description box explains how users can manage their cookie settings. It also includes helpful links to official browser support pages for managing or deleting cookies. You can customise this description to include additional browser types, site-specific instructions or translations, depending on your audience.

Set the effective date

This is the Effective Date of your cookie policy. By default, it shows the current date, but you may change it if needed. This date indicates when your cookie policy comes into effect.

Finalise or Save your policy

Click Generate cookie policy to complete the process and publish the cookie policy, or click Save draft if you want to continue editing later without publishing.

cookie preference

Review the Cookie Policy Preview in the selected language(s). Use the language selector to switch between languages if multiple languages are enabled. If you need to make changes, click Edit cookie policy to return to the editor.

When you’re ready, click Add policy to site in the top-right corner.

add policy to site

A modal opens with ways to add your cookie policy. Choose one option and follow its steps.

wix-policy-methods.png

Option 1: Hosted URL

Displays your cookie policy through a hosted link. The policy updates automatically whenever you make changes in CookieYes.

Step 1: Copy the hosted URL

  1. In the modal, select Hosted URL.
  2. Click Copy URL.
hosted-url-img-wix.png

By default, the policy uses the visitor's browser language. To set a specific language, add its code to the end of the URL. For example, /fr for French: https://legal.policygenerators.com/cookie-policy/xxxxxxxxxxxxxxxxx/fr

Tip

If someone else manages your website, click Send URL to a teammate to share the link with them.

These steps add the link to your site footer, though you can place it anywhere on your site.

  1. Log in to your Wix account.
  2. On your site's dashboard, click Edit Site.
  3. Scroll to the footer of any page. The footer appears on every page of your site.
  4. In the side panel, click Add (+) > Text, then drag a text box into the footer.gif-add-link-wix.gif
  5. Enter Cookie Policy as the text.
  6. Select the text, then click the Link icon in the text settings.
  7. Select Web Address. Paste the hosted URL, then click Done.paste-url.gif
  8. Click Publish.

Option 2: HTML format

Adds the cookie policy as static HTML. You update the page manually whenever the policy changes.

Step 1: Copy the HTML

  1. In the modal, select HTML format.html-format-wix.png
  2. Select your preferred language.
  3. Click Copy code.
Tip

Use the Send code to a teammate option if someone else manages your website content.

Step 2: Create a policy page in Wix

  1. Log in to your Wix account
  2. On your site's dashboard, click Edit Site.edist-site-wix.png
  3. In the side panel, click the Pages & Menu icon, then click + Add Page.add-page-wix.png
  4. Select + Blank Page. Enter the title Cookie Policy, then click Done.blank-page-wix.png

Step 3: Add the HTML

  1. In the side panel of the new page, click Add (+), then select Embed Code > Embed HTML.wix_embed-HTML.png
  2. Select the HTML block, then click Enter Code.wix_enter-code.png
  3. Paste the HTML into the code field, then click Update.
Note

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>

  1. In the embedded HTML, find the anchor element with the inner text Cookie Settings.wix_replace-code.png
  2. 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>
  3. Replace https://parent-domain.com with your website domain, then click Update.

This step shows the cookie audit table under Types of cookies we use.

Add the script to the cookie policy page

1. At the top of the Cookie Policy page, add the following script.

2. Replace https://parent-domain.com with your website domain, then click Update.

<!-- 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 code

Add custom code in Wix settings

  1. In your Wix site Settings, add the following custom code.

  2. Replace https://iframe-domain.filesusr.com with 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 && ["", " ", "&nbsp;"].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>
custom code

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.

what is embeded
change in code

For example, if you have entered “Demo Content” in the field “What’s in the embed?“, modify the code as shown below:

<script>
(() => {
  function e(t, n, i = false, o = false) {
    const s = o ? document.getElementById(t) : document.querySelector(t);
    if (s && !i || (s && i && ["", " ", "&nbsp;"].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>

Step 6: Publish and verify

  1. On the Cookie Policy page, click Preview.
  2. Check that the policy content, Cookie Settings button and audit table display correctly.
  3. Click Publish.

Your cookie policy page is now live on your Wix website. You can link the cookie policy in your website footer, and within your cookie banner so visitors can read it before they give consent.

Conclusion

Your cookie policy page is now live on your Wix website. You can link the cookie policy in your website footer, and within your cookie banner so visitors can read it before they give consent.

Was this article helpful?

Have more questions?

Reach out to us and we'll answer them.

Contact us