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:
- Go to Nelio Popups » All Popups and edit the one you want.
- In the editor sidebar, go to the Settings panel, and open the Conditions tab.
- Add or modify a condition by selecting ‘Cookie’.
- 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.

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.

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.

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.

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.

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.

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.

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.