Documentation

Experiments

Audiences

Filter campaigns by device, country, locale, or any custom attribute you pass to the SDK.

Audiences are boolean expressions evaluated server-side at config resolution time. They have access to:

  • device.type , one of mobile, desktop, tablet
  • device.country , ISO-3166 alpha-2, derived from IP
  • user.locale , BCP-47 tag (en-US, es-MX)
  • user.attributes.* , anything you pass via the SDK

Pass custom attributes when you mount the provider:

tsx
<ExperiwallProvider
  apiKey={KEY}
  user={{
    id: u.id,
    attributes: { plan: "free", lifetime_value: 0, signed_up_days_ago: 3 }
  }}
/>