How contextual conditions work
Contextual conditions are evaluated at request time against session context data including:- Geographic data: Country, state/province, city
- Market data: Market ID, market handle, market countries
- Customer attributes: Customer tags, account status, purchase history
- UTM parameters: Marketing source, medium, campaign
- Device information: Device type, operating system
- Shopping channel: Online store, mobile app, etc.
Condition examples
The contextual conditions form in the dashboard lets you build these targeting rules without writing code. Below are common examples of what you can set up. Target US visitors:| Field | Operator | Value |
|---|---|---|
| Country | equals | US |
| Field | Operator | Value |
|---|---|---|
| State | equals | CA |
| Device | equals | mobile |
| Field | Operator | Value |
|---|---|---|
| Marketing campaign | is in list | summer-sale, holiday-promo |
| Field | Operator | Value |
|---|---|---|
| Customer tags | contains | vip |
| Field | Operator | Value |
|---|---|---|
| Market handle | equals | ca |
| Field | Operator | Value |
|---|---|---|
| Market countries | contains | US |