Where does it run
URL rules. Applies to the page.
Who sees it
Visitor rules. Applies to the person.
When does it fire
On load, on click, when visible, or manual.
Where it runs (Locations)
A Location is a set of URL rules. The visitor’s current URL is tested against them. A rule can match on:- Full URL, hostname, path, or query string, with
equals,contains,starts with,ends with, orregex, plus their negations. - Case sensitivity is per-rule. New URL rules default to case-insensitive. See URL rules for the details and the migration story.
Who sees it (Audiences)
An Audience is a set of visitor rules. Rules can match on:- Device, browser, operating system.
- Geo, country from a curated list, plus region and city (both case-insensitive text).
- Language the browser prefers.
- Visitor history, new vs returning, visit count, days since last visit, pages viewed this session, whether they have completed a specific goal already.
- Traffic source, referrer, and UTM source, medium, campaign, term, content.
- Time of day and day of week in the site’s project timezone.
- Cookie value or a custom JavaScript condition you write.
When it fires (Activation)
Activation decides the moment the exposure event fires and the variant applies. That timing matters for two reasons: it is the number that lands in your funnel, and it is the point at which the variant’s JavaScript runs. The modes are:- On load (default), fires immediately as soon as the page’s other targeting rules match.
- On click, waits for a click on a CSS selector, then fires.
- When visible, waits until an element is at least 1 % on-screen, then fires.
- Manual, waits for your own code to call
abtestly.activate("your-key").