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.

Grouped/Nested Conditions in Segment Engage Mappings

Issue

When configuring destination mappings in Segment, users may need to trigger conversion events based on complex logic, such as requiring an event to fire when either gclid, gbraid, or wbraid exists. The current mapping UI only supports a single global ALL (AND) or ANY (OR) condition set, and does not allow for nested or grouped AND/OR logic.

 

Product

Segment 

 

Environment

Segment Console

 

Cause

The Segment  destination mapping UI does not currently support nested or grouped AND/OR logic. Only a single set of ALL (AND) or ANY (OR) conditions can be applied globally to a mapping rule.

 

Resolution

  • Preprocess events at the source (before they reach Segment) to add an auxiliary custom property (e.g., has_google_click_id) that is set to true if any of the identifiers (gclid, gbraid, or wbraid) exist. Use this property in your mapping conditions.
  • Alternatively, create separate mappings for each identifier, each using the ALL condition set and checking for the relevant identifier or make use of destination filters in addition to mappings.

 

Additional Information 

Have more questions? Submit a request
Powered by Zendesk