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 GuideWhat 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 across
instance_event_datevalues- What is the composition of a segment? — group by
segment_byto see customer ID vs email-based membershipBefore 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 onsegment_by, this contains either an email address or a customer ID. When joining to other tables, match against the corresponding field (e.g.,customer_idon the Orders table, oremail_addresson the Customers table).Key Relationships
Table Join Key What the Join Enables Customers customer_identitytocustomer_idoremail_addressProfile data (name, email, address, consent, tags) Orders customer_identitytocustomer_idoremail_addressPurchase behavior (order counts, revenue, new vs returning) Pixel Orders customer_identitytocustomer_idoremail_addressAttribution and ad-driven activity at the order level Customer Segmentation Analytics segment_id+instance_event_datePre-aggregated metrics around a pinned_event_dateWhen to Use a Different Table
- Need segment performance metrics (revenue, AOV, purchase frequency) → Customer Segmentation Analytics table. This table is the membership list; Analytics has the metrics.
- Need customer profiles without segment context → Customers table.
Dimensions
Dimensions are immutable properties that can be used for grouping data.
Title | ID | Type | Description |
|---|---|---|---|
Customer Identity |
| string | The identity of the customer in the segment. Can be either Example values: |
Instance Created Date |
| date | The timestamp when the segment instance (run/snapshot) was generated. Example value: |
Schedule |
| string | The recurring schedule for running the segment. Example values: |
Segment By |
| string | The audience type used to group customers in the segment. Example value: |
Segment Created Date |
| date | The date when the segment was originally created. Example value: |
Segment ID |
| string | The unique identifier for a segment. Example value: |
Segment Instance ID |
| string | The unique identifier for a specific segment instance (run/snapshot). Example value: |
Segment Name |
| string | The human-readable name of the segment, Example values: |
Shop ID |
| string | 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: |
Shop Name |
| string | The name of the shop. Can be used to group or filter data by shop in multi-store reports. Example values: |
Measures
Measures are numeric fields that can be aggregated and/or combined to calculate new metrics.
| Title | ID | Type | Description |
|---|---|---|---|
| Number of Customers | num_of_customers | numeric | The total number of unique customers included in the segment instance. |
| Number of Orders | num_of_orders | numeric | The total number of orders placed by customers in the segment during the relevant time window. |
| Total Revenue | total_revenue | numeric | The total revenue generated by customers in the segment during the relevant time window. |
Updated 2 days ago