Cookie
The Lyftio script reads cookies when it loads and continuously watches for any changes. This allows you to set up targeting based on any JavaScript-set cookie by using a cookie condition. A goal that relies on a cookie condition works best when paired with another trigger, such as a click condition. For example, you might check for a specific cookie when a user clicks a button, and register the conversion only if that cookie exists or has a specific value.
Example
Say you want register clicks on addToCart for visitors that are logged in. If that value is set in a cookie you can easily target this by setting a cookie condition and a click condition.
Example
logged_in = "true"

If the cookie is structured using only a name and value, you can simply enter the cookie name and the value you want to match. In this case, there’s no need to specify a key, just provide the name and value.
Cookie monitoring is a new JavaScript feature. Since June 2025, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers. Read more
A cookie condition does not work on cookes set as httpOnly as this prevents access to cookie value through JavaScript.
Always test your Audience in Preview before activating the experiment to make sure that your experiment only runs on pages that you intented.