Your tracking plan should now be live for the selected Source.
Now, we’ll choose what happens to events that violate the tracking plan. Potential reasons for violation include:
Missing required properties. For example, for an order_completed event, if the price property is set to required and missing, the event is in violation.
Invalid property value data types. For example, if you require a String but receive an integer for an order ID, throw a violation.
Property values that do not pass applied conditional filtering. For example, for an email_opened event, if the campaign_id property does not satisfy the regular expression, throw a violation.
Protocols can also monitor for unplanned events, properties, and traits that are not explicitly listed in the tracking plan.
We can choose to allow or block violations and unplanned events:
Allow: send to the Destination, despite being unplanned or in violation
Block: do not send to the Destination
For unplanned or violating event properties and traits, we can additionally choose to omit those properties or traits while sending the non-violating and planned properties/traits to Destinations.
To set this up in your Segment workspace, navigate to the desired Source and select Settings, then Schema Configuration: