Skip to main content
Context-specific experiments allow you to track metrics exclusively for purchases made within a specific context. This is useful when you want to measure the impact of a particular screen or flow on conversion rates. When enabled, only purchases that include the experiment’s context key will be counted toward the experiment’s metrics. This gives you more accurate data about how a specific paywall or offer performs. To use context-specific experiments:
  1. Set a Context key when creating the experiment
  2. Enable the Context-specific toggle
  3. Pass the context key when making purchases in your app
Use the following code snippets to pass context keys when making a purchase:
Swift
Objective-C
Java
Kotlin
Flutter
React Native
Unity
Cordova
Capacitor