On this page

Import or export experiment chart settings as JSON

Creating charts with matching settings is difficult and time-consuming when you analyze experiment results in both Amplitude Experiment and Analytics. To solve this, you can import or export chart settings as JSON.

To copy settings as JSON from Experiment to Analytics, follow these steps:

  1. In any tab in Experiment, select the More dropdown and choose Copy flag as JSON to copy chart settings to your clipboard.

  2. From an Experiment Results chart in Analytics, select Import.

  3. Paste the copied settings in the Import from JSON window, then select Apply to match your experiment's configuration.

JSON schema

The JSON copied to your clipboard contains fields that describe the inputs to an Experiment Results chart. The fields differ slightly from what appears in the version history for an experiment or feature flag.

  • variants: array of objects with the following keys:

    • name: the custom name set for the variant.
    • userPropertyValue: the variant value, used to build segment conditions when converting variants to segments in the chart.
  • bucketingGroupType: the unit of analysis. Refer to Experiment: Account Level Analysis for more information.

  • userProperty: the Amplitude user property that identifies users exposed to each treatment. Used to build segment conditions when converting variants to segments in the chart. Refer to event tracking in Amplitude for more information.

  • metrics: an array of metric objects, including test direction, MDE, events, and analysis type.

  • experimentStartDate: the start date of the experiment.

  • experimentEndDate: the end date for the date picker, or today if the experiment is still running.

  • exposureEvent: the exposure event and filters for the experiment. When your experiment uses the default Amplitude exposure event, the event type is always [Experiment] Exposure. Refer to exposure tracking in Amplitude for more information about exposure events.

Was this helpful?