Standard segment builder
Configure a guided segment builder so business users can build audiences without knowing the schema.
Your goal
Set up the standard segment builder for a datamart, so that people who do not know your schema can still build segments quickly - by picking from a curated list of criteria instead of writing a query.
Expected outcome
At least one builder and one audience feature exist on the datamart, and Audience > Builders > Standard offers a usable set of criteria.
Where it fits among the builders
The platform gives you several ways to segment your audience using queries.
Standard segment builder
Audience > Builders > Standard
Setup: at least one builder and one audience feature
Fast segment building, and visualising the segment in a dashboard before saving it. The preferred solution once it is set up.
Advanced segment builder
Audience > Builders > Advanced
No setup, but knowledge of the schema
Dragging and dropping schema fields into a visual OTQL query builder. Not the best option for casual users.
Query tool
Data Studio > Query tool
Solid knowledge of your schema and OTQL
Writing OTQL queries directly.
What you configure
A standard segment builder is a configured instance of the guided builder. Each builder has a list of default audience features that are automatically used in it. You can set up several builders to act as templates, once you identify segment queries your teams use often.
An audience feature is one of the criteria a user can pick in the builder. The builder is only usable once at least one exists.
Both are managed in Settings > Datamart > your datamart > Segment builders, and can also be managed by API.
Set it up
Create the audience features
Audience features are the selectable criteria. Their detailed configuration is covered in Standard Segment Builder, in Audience & Activation.
Create the builder
Go to Settings > Datamart > your datamart > Segment builders, or use the API:
demographics_features_ids holds the IDs of the audience features linked to the builder. These audience features are always selected in the builder - use them for the criteria that should frame every segment, not for optional ones.
Builders can be listed with GET /v1/datamarts/{datamart_id}/audience_builders, read individually with GET /v1/datamarts/{datamart_id}/audience_builders/{audience_builders_id}, and updated with PUT on the same path.
Add a dashboard to the builder
The builder can show a dashboard so users see the shape of the population before saving the segment. Dashboards are uploaded per builder as a JSON definition; the components available are the same as elsewhere, so see Create a custom dashboard for what you can put in one.
Import final values, if you use search by final value
To let users select audience features by their final values, import those values first, as a CSV file.
Requirements:
Between 1 and 8 levels, followed by the final value:
UserPointdoes not need to be specified aslevel1- it is implicit.A maximum of 100,000 lines, each matching your schema.
Final value fields of type
Stringor[String].
Upload with:
Verify
Audience > Builders > Standard opens and offers criteria.
The features you marked as default appear pre-selected in every new segment.
If you imported final values, they are selectable on the corresponding features.
Related pages
Last updated
Was this helpful?