Customer Segmentation Table

customer_segmentation_table

The Customer Segmentation table lists which customers belong to each segment at any point in time. One row per customer per segment instance. Learn more about customer segmentation.

📋

Table Guide

What You Can Answer With This Table

  • Which customers are in a specific segment? — filter by segment_id
  • How has segment membership changed over time? — compare customer counts across instance_event_date, optionally group by segment_by

Before You Query

  • A segment is a group of customers matching defined rules. A segment instance is a snapshot of that segment at a point in time (generated daily or every other day).
  • To match results with the Customer Segments UI, filter for the most recent segment instance per segment. Without this, queries include all historical instances and totals will appear inflated.
  • The join key is customer_identity. Depending on segment_by, this contains either an email address or a customer ID. When joining to other tables, match against the corresponding field (e.g., customer_id on the Orders table, or email_address on the Customers table).

Key Relationships

TableJoin KeyUse This Join To
Customerscustomer_identity to customer_id or email_addressUnderstand who is in each segment using profile attributes
Orderscustomer_identity to customer_id or customer_emailCompare what segment members bought and spent
Pixel Orderscustomer_identity to customer_id or customer_emailAnalyze which channels or campaigns drove segment members' orders
Customer Segmentation Analyticssegment_id + instance_event_dateCompare segment performance around a pinned_event_date using pre-aggregated metrics

When to Use a Different Table

  • Use Customer Segmentation Analytics table when you need segment performance metrics such as revenue, AOV, or purchase frequency. The Customer Segmentation table is for segment membership.
  • Use Customers table when you need customer profiles without segment context. The Customer Segmentation table is for segment membership.

View the full Triple Whale Data Ontology →


Dimensions

Dimensions are immutable properties that can be used for grouping data.

TitleIDTypeDescription
Customer Identitycustomer_identitystring

The identity of the customer in the segment. Can be either email or customer_id type.

Example values: [email protected], 5209503793328

Instance Created Dateinstance_created_datedate

The timestamp when the segment instance (run/snapshot) was generated.

Example value: 2025-08-25 11:08:39

Scheduleschedulestring

The recurring schedule for running the segment.

Example values: once_a_day, once_every_other_day

Segment Bysegment_bystring

The audience type used to group customers in the segment.

Example value: customer_id, email

Segment Created Datesegment_created_datedate

The date when the segment was originally created.

Example value: 2023-07-20 08:33:08

Segment IDsegment_idstring

The unique identifier for a segment.

Example value: 64b8f144256b30501b2ea1e0

Segment Instance IDsegment_instance_idstring

The unique identifier for a specific segment instance (run/snapshot).

Example value: 64b8f144256b30501b2ea1e0_2025_08_25

Segment Namesegment_namestring

The human-readable name of the segment,

Example values: Fourth of July Sale, At least 3 orders, Jan Non Recent Active

Shop IDshop_idstring

The unique ID of the shop (often corresponds to the shop domain). Can be used to group or filter data by shop in multi-store reports.

Example values: example-US.myshopify.com, example-EU.myshopify.com

Shop Nameshop_namestring

The name of the shop. Can be used to group or filter data by shop in multi-store reports.

Example values: example-US, example-EU

Measures

Measures are numeric fields that can be aggregated and/or combined to calculate new metrics.

TitleIDTypeDescription
Number of Customersnum_of_customersnumericThe total number of unique customers included in the segment instance.
Number of Ordersnum_of_ordersnumericThe total number of orders placed by customers in the segment during the relevant time window.
Total Revenuetotal_revenuenumericThe total revenue generated by customers in the segment during the relevant time window.

Did this page help you?