You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/destinations/destination-filters.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,7 @@ The following examples illustrate common destinations filters use cases:
68
68
*[Remove internal and test events from production tools](#remove-internal-and-test-events-from-production-tools)
69
69
*[Sample a percentage of events](#sample-a-percentage-of-events)
70
70
*[Drop events](#drop-events)
71
+
*[Only send events with userId](#only-send-events-with-userid)
71
72
72
73
### PII management
73
74
@@ -108,6 +109,26 @@ Using the [destination filters API](https://docs.segmentapis.com/tag/Destination
108
109
109
110
[Watch this destination filters walkthrough](https://www.youtube.com/watch?v=47dhAF1Hoco){:target="_blank"} to learn how to use event names to filter events sent to destinations.
110
111
112
+
### Only send events with userId
113
+
114
+
Use the [Public API](https://docs.segmentapis.com/tag/Destination-Filters/){:target="_blank"} to only send events to your destination if they contain a `userId`. Here's an example of how you might format this request:
115
+
116
+
```json
117
+
{
118
+
"sourceId": "<SOURCE_ID>",
119
+
"destinationId": "<DESTIANTION_ID>",
120
+
"title": "Don't send event if userId is null",
121
+
"description": "Drop event if there is no userId on the request",
0 commit comments