Setting Up a Cookie Banner with Merchant

Does your WooCommerce store need to comply with cookie and privacy regulations? Merchant’s Cookie Banner module adds a customizable consent banner that links to your Privacy Policy and lets customers know about your data collection rules, helping you meet the legal requirements.

In this guide, we’ll walk you through how to set up the Cookie Banner module in Merchant.


Before you get started, make sure you’ve installed and activated the Merchant plugin on your WordPress site. If you’re using premium modules, ensure you have Merchant Pro installed and active.

Customers give consent by clicking the opt-in button on the banner. Once they do, Merchant sets a cookie in their browser as proof that they accepted your Privacy Policy, and the banner disappears for the duration of that cookie. When the cookie expires, the banner reappears and the customer accepts it again. Here’s an example of the Cookie Banner module on the frontend of a WooCommerce store:

A cookie banner added by Merchant on a WooCommerce store

1. Create a Privacy Policy page

Before enabling the Cookie Banner module, create a Privacy Policy page. The banner technically works without one, since it only needs the page’s URL, but linking to a real Privacy Policy is what keeps your store compliant with most privacy regulations.

WordPress takes privacy seriously and includes a few helpful defaults. First, it ships with a default Privacy Policy draft that you can edit and publish. Find it on the Pages » All Pages admin screen:

The Privacy Policy draft in the WordPress admin area

Second, it has a dedicated Privacy area, which you can reach from the Settings » Privacy menu in the left sidebar:

The Privacy submenu and Privacy area in the WordPress admin area

In the Policy Guide tab, you’ll find information about the cookies WordPress and WooCommerce use, which can help you write an accurate Privacy Policy.

2. Save your Privacy Policy page in WordPress (optional)

This step isn’t required for the Cookie Banner module, since it only needs the URL of your Privacy Policy page. However, saving the page as your default in WordPress helps you comply with different privacy regulations, so it’s worth doing.

Once your Privacy Policy page is published, click the Change your Privacy Policy page dropdown, select the page, then click the Use This Page button:

The Privacy Policy dropdown options in the WordPress admin area

WordPress now stores the page as your default Privacy Policy. It also links to it from the login page of your website:

The Privacy Policy link on the WordPress login page

You can also link to your Privacy Policy from other areas of your site. For example, add it to your footer menu from the Appearance » Menus admin page.

Once your Privacy Policy page is set up, open your Merchant dashboard by clicking the Merchant menu in the left sidebar of your WordPress admin area. Under the Protect Store heading, click the Cookie Banner module to open its settings page:

The Cookie Banner module on the Merchant dashboard

4. Configure the module settings

On the module’s admin page, find the Settings section and configure the following options:

  • Theme: Choose whether to show a floating or fixed cookie banner.
  • Bar text: The text Merchant shows on the cookie banner.
  • Privacy policy text: The text of the link that takes users to your Privacy Policy page (default text: “Learn More”).
  • Privacy policy URL: The URL of the Privacy Policy page you created in the first step.
  • Button text: The label on the button users click to accept your Privacy Policy (default text: “I Understand”).
  • Cookie duration (days): How long the cookie lasts in the user’s browser. The banner stays hidden for this many days after they accept, then reappears.
  • Show close “x” button: Show or hide the close button in the top-right corner of the cookie banner.
The Settings section on the Cookie Banner module's admin page

Once all the settings are configured, click the Save button in the top-right corner of the page.

Merchant also lets you customize the style of your cookie banner. Find the Style section below the Settings section on the module’s admin page, where you get the following options:

  • Modal height: The height of the cookie banner in pixels.
  • Modal background color: The background color of the cookie banner.
  • Text color: The color of the text shown on the cookie banner.
  • Link color: The color of the link that takes users to your Privacy Policy page.
  • Button background color: The background color of the consent button.
  • Button text color: The text color of the consent button.
The style settings of the Cookie Banner module

When you’re happy with the style of your cookie banner, click the Save button in the top-right corner of the page.

Finally, activate the module by clicking the Enable button at the top of the page:

The Enable button on the Cookie Banner module's admin page

Frequently asked questions

Below, we’ve answered some of the most common questions about the Cookie Banner module.

The banner works with just the URL of your Privacy Policy page. Creating and saving a real Privacy Policy page is strongly recommended, since that’s what keeps your store compliant with privacy regulations.

You control this with the Cookie duration option. After a customer accepts, the banner stays hidden for the number of days you set, then reappears so they can accept again.

Yes. The Style section lets you adjust the banner’s height, background color, text color, link color, and button colors to match your store’s branding.


That’s it! You’ve successfully set up the Cookie Banner module in Merchant and linked it to your Privacy Policy.

Next, would you like to add another layer of legal protection at checkout? Check out our guide on the Agree to Terms Checkbox module to learn more.

image_print