Documentation

All the information you need in one place

How to Open a Popup on Cookie Conditions

You can use Nelio Popups to show a popup based on the cookie data in your visitor’s browser. This can be helpful when displaying different popups depending on the state of each visitor.

In this article, you’ll learn how to target cookie data to show your popup.

Using Cookie Condition

When you are ready to use the Cookie condition, follow these steps:

  1. Go to Nelio Popups » All Popups and edit the one you want.
  2. In the editor sidebar, go to the Settings panel, and open the Conditions tab.
  3. Add or modify a condition by selecting ‘Cookie’.
  4. Set the name of the cookie you want to check in the condition.

The following options are available for a Cookie condition:

  • exists
  • does not exist
  • has value equal to
  • has value different from
  • has value that includes
  • has value that does not include
  • has value that matches

Let’s review each option.

Exists

When you want to display a popup for visitors with a specific cookie in their browser, select ‘exists’ in the condition field.

Popup with a cookie condition set to 'exists'.
Popup with a cookie condition set to ‘exists’.

Then, popups will only be shown to visitors using a browser in which there is a cookie with the cookie name of your choice.

Does not exist

When you want to display a popup for visitors without a specific cookie in their browser, select ‘does not exist’ in the condition field.

Popup with a cookie condition set to 'does not exist'.
Popup with a cookie condition set to ‘does not exist’.

Then, popups will only be shown to visitors using a browser in which there is no cookie with the cookie name of your choice.

Has value equal to

When you want to display a popup for visitors with a cookie in their browser that has a particular value, select ‘has value equal to’ in the condition field.

Popup with a cookie condition set to 'has value equal to'.
Popup with a cookie condition set to ‘has value equal to’.

Set the exact value for the cookie in the last field of the setting.

Then, popups will only be shown to visitors using a browser in which there is the cookie with the cookie name of your choice and the specific value.

Has value different from

When you want to display a popup for visitors with a cookie in their browser that has a value different from a particular value, select ‘has value different from’ in the condition field.

Popup with a cookie condition set to 'has value different from'.
Popup with a cookie condition set to ‘has value different from’.

Set the value to check the cookie in the last field of the setting.

Then, popups will only be shown to visitors using a browser in which there is the cookie with a value different than the one you set in the setting.

Has value that includes

When you want to display a popup for visitors with a cookie in their browser whose value contains a specific value, select ‘has value that includes’ in the condition field.

Popup with a cookie condition set to 'has value that includes'.
Popup with a cookie condition set to ‘has value that includes’.

Set the partial value to check in the cookie in the last field of the setting.

Then, popups will only be shown to visitors with a browser in which there is the cookie with the cookie name of your choice and containing the value set in the settings.

Has value that does not include

When you want to display a popup for visitors with a cookie in their browser whose value does not contain a specific value, select ‘has value that does not include’ in the condition field.

Popup with a cookie condition set to 'has value that does not include'.
Popup with a cookie condition set to ‘has value that does not include’.

Set the partial value to check in the cookie in the last field of the setting.

Then, popups will only be shown to visitors with a browser in which there is the cookie with the cookie name of your choice and not containing the value set in the settings.

Has value that matches

When you want to display a popup for visitors with a cookie in their browser whose value matches a regular expression, select ‘has value that matches’ in the condition field.

Popup with a cookie condition set to 'has value that matches'.
Popup with a cookie condition set to ‘has value that matches’.

Set the regular expression to check in the cookie in the last field of the setting.

Then, popups will only be shown to visitors with a browser in which there is the cookie with the cookie name of your choice and matching the regular expression set in the settings.


After setting the condition, save the popup and then it will open if the condition is met.

Person writing a new WordPress post on a MacBook

Looking for popups?

We have the best plugin to create popups for WordPress in minutes.

Request Customized Enterprise Pricing

10
200000

With your express consent, we handle the information provided for the purpose of contacting you and until you ask us to delete it.

70% OF YOUR VISITORS DO EXACTLY WHAT
YOU JUST DID AND NEVER COME BACK!

KEEP THEM
ON YOUR SITE
LONGER WITH
NELIO POPUPS

Claim Your Discount Now

Image with a 10%-off coupon

WAIT! BEFORE YOU GO...

Get this awesome discount now!

No, I don't want to save money

Image with a 10%-off coupon

WAIT! BEFORE YOU GO...

Get this awesome discount now!

No, I don't want to save money

YOUR COOKIE SETTINGS


This site uses proprietary operational cookies that have a purely functional purpose and third-party cookies that help us understand how visitors interact with the site by collecting and presenting information anonymously. To get more information about these cookies and the processing of your personal data, check our Privacy & Cookie Policy. Do you accept these cookies and the processing of personal data involved?


If you don’t, you can reject non-operational cookies and continue browsing this site by clicking here.