How to Add a Cookie Policy to WordPress

Last updated on December 12, 2025

This guide explains how to generate and add a cookie policy page to your WordPress website. A cookie policy discloses the types of cookies used on your website and their purposes. It helps your website comply with privacy laws such as 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 Web App Dashboard.

Video Tutorial: Cookie Policy for WordPress Website

You can also follow the step-by-step instructions given below to easily add a cookie policy to your WordPress website.

Generate a Cookie Policy in CookieYes

You can access the Cookie Policy Generator in two ways — either from your WordPress site (via the CookieYes plugin) or directly from the CookieYes Web App.

Option 1: From the CookieYes Web App

  1. Log in to the CookieYes Web App.
  2. In the top navigation bar, click More > Cookie Policy Generator.

    CookieYes Dashboard

Option 2: From the CookieYes Plugin in WordPress

Log in to your WordPress account and go to the CookieYes plugin.

    1. From the CookieYes Dashboard, click Go to Web App to open the CookieYes Web App.

      Go to Webapp
    2. In the CookieYes Web App Dashboard, click More > Cookie Policy Generator to start creating your cookie policy.

    In the CookieYes Dashboard, navigate to Policy Generator and click Connect to Web App to Generate your cookie policy.

    Connect to Web App

    If you already have a CookieYes Web App account

    1. Click Have an account? Log in and connect.
    2. Enter your Email Address and Password, then click Log In & Connect Site to CookieYes.
    Have an Account? Log in and connect

    If you’re new to CookieYes

    1. Click Connect to Web App to Access.

      Connect to Web App access
    2. Select a plan, then click Start free trial.

      Select a plan
    3. Enter your Email Address and Password, then click Get Started & Connect to CookieYes.
    4. Click Add payment details.

      Add Payment details
    5. Add and confirm your payment details, then click Start trial to complete the setup.

    Once connected, you’ll be redirected to the CookieYes Web App. In the top navigation bar, click More, then select Cookie Policy Generator from the dropdown menu to begin.

    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.

    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

    Step 6: Set Cookie Preferences and Generate the Policy

    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.

    Add the Cookie Policy to WordPress

    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 steps below to add your policy:

    Step 1: Copy the Policy Code

    1. Choose your preferred method:
    • Option A – Code Snippet (Recommended): Keeps your policy automatically updated.
    • Option B – HTML Format: Requires manual updates whenever the policy changes.
      Add cookie policy to your website
    1. Select your preferred language.
    2. Click the Copy code button for your chosen method.

    Tip

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

    Step 2: Create a Policy Page in WordPress

    1. Login to your WordPress account and navigate to your site’s Dashboard.
    2. In the left-hand menu, click Pages > Add New.

      wordpress dashboard
    3. On the new page, head to the Options menu on the right-hand side of the screen and click Code editor.

    Step 3: Embed the Policy Code

    Option A: Code Snippet Method

    If you selected the Code Snippet Method, paste the JavaScript snippet you copied, then click Save draft.

    Code snippet of cookie policy

    Option B: HTML Format Method

    If you selected the HTML Format Method, paste in the HTML you copied, then click Save draft.

    HTML format method

    Click Preview to review the page, then click Publish.

    Preview and Publish

    Your cookie policy page will be live on your WordPress site. 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 WordPress site. A properly configured cookie policy not only builds trust with your customers but also helps your store comply with privacy requirements, such as the GDPR and ePrivacy Directive.

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

    Was this article helpful?

    Have more questions?

    Reach out to us and we'll answer them.

    Contact us