How to Add a Cookie Policy to WooCommerce

Last updated on May 22, 2026

Overview

This guide will walk you through how you can generate and add a Cookie Policy page on your WooCommerce website. A Cookie Policy is a document that provides detailed disclosure about the types of cookies used on a website and their purposes. It will help your website comply with privacy laws like the GDPR and ePrivacy Directive.

To begin with, Sign up on CookieYes and try it for free.

Note

After you Sign up, you will be directed to the installation screens. You can install the cookie banner to get GDPR compliant for your use of cookies. If you prefer to create a Cookie Policy first, skip the installation and go directly to the CookieYes Dashboard.

You can follow the step-by-step instructions below to easily add a Cookie Policy to your WooCommerce website.

You can access the Cookie Policy Generator in two ways:


  1. Log in to your CookieYes account.
  2. Go to More > Cookie Policy Generator.

Note

To install and set up the CookieYes plugin on WordPress, refer to this guide.

  1. Log in to your WordPress admin portal.
  2. Navigate to CookieYes.

If your plugin is already connected to CookieYes WebApp:

  1. Click Go to Web App.
go_to_web_app
  1. Go to More > Cookie Policy Generator in CookieYes WebApp.

If your plugin is not connected to CookieYes WebApp:

  1. Go to CookieYes > Policy Generators > Connect to Web App to Generate.
connect_to_web_app_to_generate
  1. Click Have an account? Log in and connect.
Have an Account? Log in and connect
  1. Enter your email and password.
  2. Click Log In & Connect Site to CookieYes.

Once connected, go to More > Cookie Policy Generator in the CookieYes WebApp.

Step 2: Configure Language Settings

  • Select your primary language. The chosen language will appear with a checkmark.
  • (Optional) Enable Generate policy in multiple languages to add more languages. This feature is available on Basic, Pro and Ultimate plans.
  • Click Save draft to save your progress or Next to continue.
Language Settings

Step 3: Add About cookies details

In the About cookies section, edit the heading and description to explain what cookies are and why your website uses them. You can keep the default text or edit it to match your website’s practices.

About cookie details

Step 4: Add Use of cookies details

In the Use of cookies section, describe how your website uses cookies (for example, functionality, analytics, performance, or advertising). You can keep the default text or update it for accuracy.

When ready, click Preview cookie policy to review the formatting and tone before proceeding.

use-of-cookies

Step 5: Review and Edit Types of cookies

In the Types of cookies section, you will see a list of cookies from your most recent website scan. If needed, you can refresh the list by clicking Scan again to capture any new cookies. The cookies are organised into categories such as Necessary, Functional, Analytics, Performance and Advertisement. Review each entry carefully to verify the cookie name, duration, and purpose for accuracy.

Types of cookies

In the Cookie preferences section, keep the default heading (Manage cookie preferences) and description, or update them with instructions specific to your users. Set the Effective Date for the cookie policy. Preview the policy to verify the details and when confirmed, click Generate cookie policy to generate the policy.

Cookie Preferences

Note

The Revisit consent widget enables your website visitors to manage their cookie preferences. You can remove the code in the field if you don’t want a widget to be displayed. For more details, refer to the guide.

After generating your Cookie Policy, review the preview in your selected language(s). When ready, click Add policy to site in the top-right corner.

Add policy to site

A modal window will appear. Follow the below steps to add your Cookie Policy:

  1. Choose your preferred method for adding the Cookie Policy to your WooCommerce website:
  • Option A: Code snippet (Recommended): Keeps your Cookie Policy automatically updated.
  • Option B: HTML format: Requires manual updates whenever the Cookie Policy changes.
add_policy_to_woocommerce
  1. Select your preferred language.
  2. Click Copy code to copy the code provided.

Tip

You can also share the code with a developer or your team by clicking on Send code to a teammate. Enter the email address and then click on Send Instructions. The recipient will get the code and instructions via email.

  1. Log in to your WordPress admin portal.
  2. Go to Pages > Add Page.
add_page
  1. From the options, click Code editor.
code-editor
  1. Paste the Code snippet/HTML format copied from CookieYes in the WooCommerce website.
paste-the-code-snippet
  1. Click Save draft.
save-draft
  1. Click Publish to publish your changes.
publish-the-changes

Your Cookie Policy page will be live on your WooCommerce website. You can then link your Cookie Policy to your website footer, or link it within your cookie banner.

Conclusion

By following this guide, you can easily generate a Cookie Policy in CookieYes and publish it on your WooCommerce website. A properly configured Cookie Policy not only builds trust with your users but also helps your website meet privacy requirements such as the GDPR.

With CookieYes, you have a flexible, compliant and up-to-date solution to manage cookies and privacy transparency on your WooCommerce website.

Was this article helpful?

Have more questions?

Reach out to us and we'll answer them.

Contact us