Automatically logged when `client.flag()` serves a variant.
e.g., tracking which users see "Join Now" or "Register".
Captured via `client.track()` in your code.
e.g., logging sign-ups or purchases tied to those variants.
Aggregates impressions and events into conversion rates or numeric values for analysis.
e.g., average spend
Compare the percentage of users acting after seeing a flag variant (events ÷ impressions).
Assess aggregated values per user—e.g., higher purchase amounts with a discount.
**Impressions**: Automatically logged when `client.flag()` serves a variant.
**Events**: Manually tracked with `client.track()` to capture user actions.
On/off switches
**Perfect for**:
Enable/disable features
Beta feature toggles
Predefined options
**Common uses**:
Theme: `light-mode`, `dark-mode`
CTA: `Register`, `Join Now`
Numeric values
**Common uses**:
Rate limits: `1000`, `5000`, `10000`
Image quality: `75`, `80`, `100`
Complex objects
**Common uses**:
`{ "layout": "grid", "maxItems": 8 }`
JavaScript
React
Node.js
Next.js
Nest.js
Client-side SDKs require a user context at initialization.
Server-side SDKs initialize without one.
Client-side SDKs evaluate on FlagSync’s servers and send key-value pairs for the user to the client.
Server-side SDKs fetch full rulesets from FlagSync and evaluate locally at runtime.