SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

Why Cannot Nested Array Properties Like ecommerce.items[0].item_id Be Used in Custom Predictive Traits?

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.

Have more questions? Submit a request
Powered by Zendesk