Question
Can I use the Segment Tracking Plan Common JSON Schema to filter or omit Track calls based on the event name?
Product
Twilio Segment
Environment
Segment Console
Answer
No. The Tracking Plan Common JSON Schema does not support filtering events by the top-level event key. If an event field is added to the Common JSON Schema, it may be removed when the schema is saved because it is not a supported field for this schema.
The Common JSON Schema is intended for supported payload fields such as context, traits, and properties, not for validating or excluding events by event name.
To control whether events are allowed into the source or passed to destinations by name, consider using alternatives such as:
- Source Insert Functions
- Destination Insert Functions
- Destination Filters
- Schema Controls
- Tracking Plan event definitions