Managed Contexts
The Confidence SDKs can generate contextual data automatically, depending on the SDK.Visitor ID
Supported SDKs: JS (Client), Android, iOS, Flutter Thevisitor_id is a unique identifier for each installation of a mobile application or browser instance (cookie). This context field is automatically added to the context by the mobile SDKs.
You can override its value by setting a custom context with the same key: visitor_id.
When using a combination of Client SDKs and Server SDKs, you should
append the
visitor_id in relevant endpoint calls to your backend. This way,
the Server SDK can access it. Client SDKs expose APIs to read the
visitor_id for this purpose.Page
Supported SDKs: JS (Client) Data about the current webpage where the user is at. The various fields are all wrapped in apage struct:
pathreferrersearchtitleurl
Device Information
Supported SDKs: Android, iOS The device information context adds these entries, grouped by option:- App information:
app.version,app.build, andapp.namespace(the bundle ID or package name) - Device information:
device.manufacturer,device.model, anddevice.type. Android also addsdevice.brand - OS information:
os.nameandos.version - Locale:
localeandpreferred_languages
ConfidenceDeviceInfoContextDecorator on iOS or ConfidenceDeviceInfoContextProducer on Android. Refer to each SDK README (iOS, Android) for more information on how to
enable this context data in your application.
Related Resources
Confidence SDKs
Overview of available SDKs
Entities
Configure entity types
Flag Audience
Configure flag targeting

