The Confidence SDKs use OpenFeature’s Evaluation Context to pass context data for flag evaluations. The context contains information about the user, session, or environment that Confidence uses for targeting rules and randomization. Here is an example with the Go SDK:Documentation Index
Fetch the complete documentation index at: https://confidence.spotify.com/llms.txt
Use this file to discover all available pages before exploring further.
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
App Lifecycle
Supported SDKs: Android, iOS These context entries are automatically generated:app_versionapp_build
Related Resources
Confidence SDKs
Overview of available SDKs
Entities
Configure entity types
Flag Audience
Configure flag targeting

