From your data to a segment
Three pieces work together:- Customer properties. The data itself lives on each customer. Anything you
sync into a customer’s
metadatacan be filtered on, along with the customer’s built-in properties such asemail_address. - Filter definitions. A filter definition describes one property: where to
find it (
variable_name), what to call it in the interface (label), and what kind of value it holds (type). - Segments. In the embed, the business picks from the defined filters and sets a condition on each, for example “Membership plan is Gold”. The customers that match are the segment.
Why the type matters
Thetype decides which control the business sees and which comparisons it can
make. A number can be compared as greater or less than a value, a datetime
can be compared to “30 days ago”, and a select shows a dropdown of the options
you provide.
The type has to agree with the value you actually sync. A datetime filter on a
property that holds free text will not match the customers you expect. See
Filter definitions for the value each
type expects.
Project-level and business-level definitions
A filter definition belongs to either your whole project or a single business.- Project-level definitions apply to every business in the project. Use them for properties that every business has, such as a membership plan your platform defines. You create them in the dashboard, and each one stays hidden until you enable it.
- Business-level definitions apply to one business. Use them for properties that only some businesses have, or whose options differ per business, such as each business’s own list of locations. You create them with the API, and they are enabled as soon as they are created.
variable_name as a
project-level one, the business’s definition replaces the project-level one for
that business. Disabling the business’s definition hides the filter for that
business entirely, even though the project-level definition is still enabled for
everyone else.
Event filters
Filter definitions can also describe the properties of a project-defined event, so that a business can narrow a trigger to certain events, such as purchases over $100. These use avariable_name that starts with event. instead of
customer. and are created under the event rather than the business.
Related
- Let businesses build segments from your data for the steps.
- Filter definitions for the fields, types and naming rules.
- How syncing works for how customer
metadatagets into Pocketflows.