For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

This page covers the setup work, which is done once per datamart in settings. Using the builder to create a segment is covered in Standard Segment Builder, in Audience & Activation.

Where it fits among the builders

The platform gives you several ways to segment your audience using queries.

Tool
Where
Requires
Best for

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

1

Identify the criteria your teams actually use

Look at the segments your teams build today. The audience features you create should cover those criteria; anything else adds noise to the builder.

2

Create the audience features

Audience features are the selectable criteria. Their detailed configuration is covered in Standard Segment Builder, in Audience & Activation.

3

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.

4

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.

5

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:

    UserPoint does not need to be specified as level1 - it is implicit.

  • A maximum of 100,000 lines, each matching your schema.

  • Final value fields of type String or [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.

Last updated

Was this helpful?