Skip to content

mixpanel_data_group (Resource)

Manages a Mixpanel data group — the join key that enables group analytics (tracking at the account or organization level) or backs a lookup table. Each data group links a property name (the join key) to a display name and optional metadata.

Example Usage

resource "mixpanel_data_group" "accounts" {
  project_id = 1234567

  display_name  = "Accounts"
  property_name = "account_id"

  metadata = {
    is_company_key      = true
    company_key_name    = "account_id"
    company_revenue_key = "mrr"
  }
}
  • mixpanel_lookup_table — creates a dimension data group and uploads CSV data keyed by the join column.

Schema

Required

  • display_name (String) Human-friendly name shown in the Mixpanel UI.
  • property_name (String) The property key that serves as the join key for this group.

Optional

  • metadata (Attributes) Optional metadata blob attached to the data group. (see below)
  • project_id (Number) The project ID (defaults to the provider project). Changing it forces a new resource.

Read-Only

  • created_at (Number) Unix timestamp when the data group was created.
  • data_group_id (String) The data group id (a 64-bit integer rendered as a string; may be negative).
  • is_ready (Boolean) Whether the data group is ready for use.
  • ready_at (Number) Unix timestamp when the data group became ready.
  • type (Number) Internal type identifier.

Nested Schema for metadata

Optional:

  • company_key_name (String) The property name that serves as the company/account key.
  • company_revenue_key (String) The property name that holds revenue data.
  • is_company_key (Boolean) Whether this data group is designated as the primary company key.

Import

terraform import mixpanel_data_group.accounts '1234567:-9199707515373727904'

Format: PROJECT_ID:DATA_GROUP_ID (the id may be negative; everything after the first : is the id).