Runtime properties

Provide additional context for realtime targeting and analytics.

Last reviewed

Provide additional context for realtime targeting and analytics through the web SDK:

const client = createClient({apiKey: "YOUR_API_KEY",properties: {checkout: { variant: "treatment" },upload: { available: true },organizationId: "org_123",},});

Property names are yours to choose. For example, checkout.variant can hold the current checkout experiment and upload.available can show whether this app version supports uploads. The SDK assigns no special meaning to these names.

In flow delivery settings, add a runtime property condition such as checkout.variant equals "treatment". Nested paths are supported. Values use JSON types: boolean false differs from string "false", and number 12 differs from string "12". Objects compare by their contents; array order matters. A missing property differs from an explicit null. All property conditions and any page condition must match.

Update context

await client.configure({properties: {organizationId: "org_456",checkout: { variant: "control" },},});

An update replaces the complete properties map; it does not merge values. Include every value you still need, or pass {} to clear the map. reset() also clears it.

Calling createClient() again with the same API key returns the shared client. Supplied properties update its context; omitting them leaves context alone. React provider clientOptions.properties follows the same behavior when the provider renders. If you clear context imperatively, also update any provider props that would otherwise supply it again.

For manual loading, supply initial properties before client.load(). Call configure() after loading.

The current properties accompany analytics events, including flow events. Properties explicitly supplied on an event take precedence. Runtime properties use the existing analytics consent setting; without analytics permission they are omitted from targeting requests and analytics transmission. See Privacy & consent.

Runtime properties are available in the JavaScript SDK, React web and React Native providers, and the browser snippet. In React Native, set clientOptions.properties on GetUserFeedbackProvider or call client.configure({ properties }). Supplied provider values are reapplied when the provider renders; omit them to manage properties only through the client. Configure replaces the complete map and reset clears it.