Skip to content

mixpanel_custom_event (Data Source)

Fetches a Mixpanel custom event — a composite event definition built from multiple raw events or conditions. See also mixpanel_custom_event resource.

Example Usage

data "mixpanel_custom_event" "converted_trial" {
  project_id     = 1234567
  customevent_id = 505
}

Only customevent_id and project_id are inputs; the custom_event nested block is populated from the fetched definition.

Schema

Required

  • customevent_id (Number)
  • project_id (Number)

Read-Only

  • custom_event (Attributes) A custom event definition (JSON). Additional keys returned by the API are preserved. (see below for nested schema)

Nested Schema for custom_event

Read-Only:

  • alternatives (Attributes List) (see below for nested schema)
  • deleted (Boolean)
  • id (Number)
  • is_collect_everything_event (Boolean)
  • is_visibility_restricted (Boolean)
  • name (String)
  • project_id (Number)
  • user_id (Number)

Nested Schema for custom_event.alternatives

Read-Only:

  • event (String)
  • serialized (String)