Use nested attributes with our simplified UI
When you’re creating a segment A group of people who match a series of conditions. People enter and exit the segment automatically when they match or stop matching conditions.
- Where at least one: lets you match an item in an array (a group of items surrounded by square brackets
[]). You can specify a value for simple arrays or a property to traverse arrays of objects. - Has the property: lets you traverse properties within an object.
If you are familiar with JSON, you can switch to the Advanced editor to write your own dot notation.
In this release, we also added support for ? syntax in place of standard array brackets ([]). This indicates a key that might be an object or an array. When you’re creating a segment, you can’t see attributes or event properties unless you open Customer.io in another browser window. This operator makes it easy to write dot notation event when you don’t know the exact JSON path to a nested attribute.
objectOrArray?.childKey?.anotherChild