Try pre-set campaigns and get your first conversions within 15 minutes.
Mailocator / Filters 2025-12-17 13:03:15

Filtering by cookie name and value

This filter allows you to display a campaign only when a specific cookie is present in the visitor's browser or when this cookie contains a certain value. This is useful for targeting based on user statuses, preferences, or events that the website stores in cookies—for example, information about consent banners, logins, purchases, or personalization.

Mailocator considers a cookie with an empty value to be non-existent, so it is treated as if the cookie had not been set at all.

Best practice

Targeting by cookie is most often used to display or not display a campaign based on a specific status on the website. A typical example is not displaying a subscribe campaign to a user who has already accepted cookies, confirmed age consent, logged in, or met another condition stored in a cookie.

You can also use cookies to suppress third-party campaigns, target users with specific preferences, or finely control campaign behavior without the need for complex integrations.

Example of use

Cookie user_logged_in=true → display a loyalty campaign only to logged-in customers.

Cookie cookie_consent=accepted → do not display another consent information banner.

Cookie promo_shown=1 → prevent a specific campaign from being displayed repeatedly within a single day.