Question
Why can’t I use a nested property, such as ecommerce.items[0].item_id, as a criterion in a custom predictive trait?
Product
Segment
Environment
Segment Console
Answer
Segment predictive traits only support top-level properties or arrays at the root level. Nested properties, such as those within arrays not at the root, are not available for selection in predictive traits. To use a nested property, adjust your event schema so the property is at the root level or use a Segment Function or Event Transformer to remap the data before it reaches Engage.