Skip to content

mixpanel_experiment (Data Source)

Fetches a Mixpanel experiment — an A/B test configuration that measures the impact of product changes. Use this data source to reference experiments managed outside Terraform or to access read-only metadata like creator and lifecycle timestamps.

Example Usage

data "mixpanel_experiment" "pricing_test" {
  project_id    = 1234567
  experiment_id = "exp_abc123"
}

# Access experiment metadata
output "experiment_status" {
  value = data.mixpanel_experiment.pricing_test.status
}

For the corresponding resource to manage experiments, see mixpanel_experiment.

Schema

Required

  • experiment_id (String)
  • project_id (Number)

Optional

  • exposures_cache (String)
  • feature_flag (String)
  • results_cache (String)
  • settings (String)

Read-Only

  • allow_staff_override (Boolean)
  • can_pin (Boolean)
  • can_share (Boolean)
  • can_update_basic (Boolean)
  • can_view (Boolean)
  • content_environments_id (Number)
  • content_type (String)
  • created (String)
  • creator_email (String)
  • creator_id (Number)
  • creator_name (String)
  • deleted (String)
  • description (String)
  • end_date (String)
  • feature_flag_content_env_id (Number)
  • feature_flag_id (String)
  • hypothesis (String)
  • id (String) The ID of this resource.
  • is_favorited (Boolean)
  • is_shared_with_project (Boolean)
  • is_superadmin (Boolean)
  • last_modified_by_email (String)
  • last_modified_by_id (Number)
  • last_modified_by_name (String)
  • metrics (Attributes List) (see below for nested schema)
  • modified (String)
  • name (String)
  • pinned_date (String)
  • project_name (String)
  • start_date (String)
  • status (String) The experiment's lifecycle status.
  • tags (List of String)
  • variants (Attributes List) (see below for nested schema)

Nested Schema for metrics

Read-Only:

  • data_group_id (String)
  • id (String) Unique metric ID
  • name (String) Metric display name
  • type (String) Type of experiment metric.

Nested Schema for variants

Read-Only:

  • id (String) Unique variant ID
  • key (String)
  • name (String) Variant display name