Filter events with trigger conditions
Set up rules for an event to be sent only on matching conditions.
By default, every enabled event fires on every matching interaction. You can use trigger conditions to control when an event is sent to their destination.
What you can do with it
Filtering events are very helpful for removing noise from the events so your analytics data is cleaner and ad platforms don't optimize their algorithms on the wrong signals.
Drop noise — stop test orders, internal traffic, or QA checkouts from polluting your analytics.
Exclude a segment — keep B2B or wholesale orders out of a consumer-facing ad platform.
Isolate a case — only send renewal orders, or only first orders, to a destination that cares about one of them.
Gate by value — only send orders above a revenue threshold to a high-value audience.
How a condition works
A trigger condition has three parts:
Field
The payload data you're testing for, in dot notation
email, app.name
Operator
How you're comparing it
equals, contains
Value
What you're comparing against
test@example.com
Read left to right, a condition is a sentence: send this event only when email contains @littledata.io .
Add trigger conditions
Open the event editor
In the destination's Event Editor, open the three-dot menu on the event and select Edit.
Operators
For text fields:
equals
Exact match
does not equal
Anything except an exact match
contains
Field includes the value as a substring
starts with
Field begins with the value
ends with
Field ends with the value
Numeric fields support all of the above, plus:
greater than
Strictly greater
greater than or equal
Greater than or equal to
less than
Strictly less
less than or equal
Less than or equal to
Boolean fields support only equals and does not equal.
Combine conditions to narrow the filter
One condition covers simple cases. To describe a more specific slice, stack several and choose how they combine:
ALL of the following are true: every condition must match. Example: Send the event only for subscription orders worth 100 or more.
properties.total_pricegreater than or equal100andproperties.tagscontainssubscriptionANY of the following are true: one match is enough. Use it to widen. Example: Send the event when the order is either tagged wholesale or b2b.
properties.tagscontainswholesaleorproperties.tagscontainsb2b
Last updated
Was this helpful?
