customer Segment Members Count
Requires access scope.
Returns the total number of customers who match the criteria defined in a customer segment. This count provides real-time visibility into segment size for targeting and analysis purposes.
For example, check the size of a "High-Value Customers" segment before launching a VIP program.
The count reflects current segment membership based on the segment's filter criteria, updating as customer data changes and new customers meet or no longer meet the segment conditions.
Arguments
- query (String)
- queryId (ID)
- segmentId (ID)
- Anchor to queryquery•String
The query that's used to filter the members. The query is composed of a combination of conditions on facts about customers such as
with this syntax.- Anchor to queryIdquery•ID
Id The ID of the segment members query.
- Anchor to segmentIdsegment•ID
Id The ID of the segment.
Anchor to Possible returnsPossible returns
- Count (Count)
- Anchor to CountCount•Count
A numeric count with precision information indicating whether the count is exact or an estimate.
- Anchor to countcount•Int!non-null
The count of elements.
- Anchor to precisionprecision•Count
Precision! non-null The count's precision, or the exactness of the value.