Skip to content
v4.2 Plan a rollout from 1% to everyone across days, with automatic pauses when error rates rise. Read the release
Plinth
Start free

Targeting rules

Serve a flag to specific people with rules built from user attributes.

Rules are checked top to bottom; the first match wins.

export default defineFlags({
  'checkout-v2': {
    serve: true,
    when: { plan: 'team', country: ['DE', 'FR', 'ES'] },
    otherwise: { percent: 25 },
  },
});

Segments

Save a group of conditions as a segment, such as beta-testers, and use it in any flag. Changing the segment updates every flag that uses it.

Where rules run

Rules are evaluated inside the SDK. Your user attributes are compared locally and are never sent to Plinth unless you also send events.

Stuck? Email support@plinth.example