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
+20-24Lines changed: 20 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,19 +3,16 @@ title: Destination Filters
3
3
rewrite: true
4
4
---
5
5
6
-
Use Destination Filters to prevent certain data from flowing into a destination.
7
-
8
-
With Destination Filters, you can conditionally filter out event properties, traits, and fields, or even filter out the event itself.
9
-
10
-
Common use cases for Destination Filters include the following:
6
+
Use Destination Filters to prevent certain data from flowing into a destination. With Destination Filters, you can conditionally filter out event properties, traits, and fields, or even filter out the event itself.
11
7
8
+
Common use cases for Destination Filters include:
12
9
- Managing PII (personally identifiable information) by blocking fields from reaching certain destinations
13
10
- Controlling event volume by sampling or dropping unnecessary events for specific destinations
14
11
- Increasing data relevance in your destinations by removing unused or unwanted data
15
12
- Preventing test or internally-generated events from reaching your production tools
16
13
17
-
> note ""
18
-
> Destination Filters are available to Business Tier customers only.
14
+
> info ""
15
+
> Destination Filters are only available to Business Tier customers.
19
16
20
17
### Destination filtering limitations
21
18
@@ -30,8 +27,7 @@ Keep the following limitations in mind when you use Destination Filters:
30
27
31
28
## Create a Destination Filter
32
29
33
-
To create a Destination Filter, follow these steps:
34
-
30
+
To create a Destination Filter:
35
31
1. Go to **Connections > Destinations** and select your destination.
36
32
2. Click on the **Filters** tab of your destination.
37
33
3. Click **+ New Filter**.
@@ -43,16 +39,16 @@ To create a Destination Filter, follow these steps:
43
39
44
40
## Destination Filters API
45
41
46
-
The Destination Filters API provides more power than the Segment dashboard's Destination Filters settings. With the API, you can create complex filters that are conditionally applied using Segment's [Filter Query Language (FQL)](/docs/config-api/fql).
42
+
The Destination Filters API provides more power than Segment's dashboard Destination Filters settings. With the API, you can create complex filters that are conditionally applied using Segment's [Filter Query Language (FQL)](/docs/config-api/fql).
47
43
48
44
The Destination Filters API offers four different filter types:
|`drop_event`|Don't send matched events to the destination. |
53
-
|`sample_event`|Send only a percentage of events through to the destination. |
54
-
|`whitelist_fields`| Only send whitelisted properties to the destination. |
55
-
|`blocklist_fields`|Don't send blocklisted properties to the destination. |
48
+
|`drop_event`|Doesn't send matched events to the destination. |
49
+
|`sample_event`|Sends only a percentage of events through to the destination. |
50
+
|`whitelist_fields`| Only sends whitelisted properties to the destination. |
51
+
|`blocklist_fields`|Doesn't send blocklisted properties to the destination. |
56
52
57
53
To learn more, read Segment's [Destination Filters API docs](https://reference.segmentapis.com/#6c12fbe8-9f84-4a6c-848e-76a2325cb3c5){:target="_blank"}.
58
54
@@ -105,7 +101,7 @@ Using the [Destination Filters API](https://reference.segmentapis.com/#6c12fbe8-
105
101
106
102
Some destinations offer settings that also allow you to filter data. For example, the Facebook App Events destination allows you to map `Screen` events to `Track` events. Because Destination Filters are evaluated and applied _before_ the Destination settings are applied, they can conflict with your settings.
107
103
108
-
In the example in the video above, if you have a Destination Filter that filters Track events _and_ you have the **Use Screen Events as Track Events** setting enabled, `Track` events will be dropped, but `Screen` events still process. The destination settings will transform it into a `Track` event - *after* the filters.
104
+
In the example in [the video](https://www.youtube.com/watch?v=47dhAF1Hoco){:target="_blank"}, if you have a Destination Filter that filters Track events _and_ you have the **Use Screen Events as Track Events** setting enabled, `Track` events drop, but `Screen` events still process. The destination settings will transform it into a `Track` event - *after* the filters.
109
105
110
106
**Error handling**
111
107
@@ -115,7 +111,7 @@ Errors aren't exposed in your Destination's Event Deliverability tab. For help d
115
111
116
112
## FAQ
117
113
118
-
**How do Destination Filters work with array properties?**
114
+
#### How do Destination Filters work with array properties?
119
115
120
116
Destination Filters can filter properties out of objects nested in an array. For example, you can filter out the `price` property of every object in an array at `properties.products`. You can also filter out an entire array from the payload. However, you can't drop nested objects in an array or filter properties out of a single object in an array.
121
117
@@ -127,36 +123,36 @@ For example, the `properties.products.newElement` filter blocks all `newElement`
127
123
128
124
To block the Identify event trait `products.newElement`, select the option under the **User Traits** list instead. To block a context object field `products.newElement`, select it from the **Context Fields** list.
129
125
130
-
**How many filters can I create?**
126
+
#### How many filters can I create?
131
127
132
128
Segment supports 10 filters per destination. If you need help consolidating filters or would like to discuss your use case, [contact Segment](https://segment.com/help/contact/){:target="_blank"}.
133
129
134
-
**Can I set multiple `Only Send` Destination Filters?**
130
+
#### Can I set multiple `Only Send` Destination Filters?
135
131
136
132
Segment evaluates multiple `Only Send` filters against each other and resolves Destination Filters in order. If multiple `Only Send` filters conflict with each other, Segment won't send information downstream.
137
133
138
-
**How many properties can I view in the filter dropdown?**
134
+
#### How many properties can I view in the filter dropdown?
139
135
140
136
Segment displays the most recent 15,000 properties. To find a property not in the filter dropdown, enter the property manually.
141
137
142
-
**How can I filter out warehouse events?**
138
+
#### How can I filter out warehouse events?
143
139
144
140
To filter out events from warehouses, use Selective Sync.
145
141
146
-
**I don't see a `name` property at the top level of my events to filter on "event name".**
142
+
#### I don't see a `name` property at the top level of my events to filter on "event name".
147
143
148
144
Generally, only Track calls have "name" properties, which correspond to the "Event" field in an event.
149
145
150
-
**How can I find out when new Destination Filters have been added or removed?**
146
+
#### How can I find out when new Destination Filters have been added or removed?
151
147
152
148
The activity feed shows the action, date, and user who performed the action when a Destination Filter is created, modified, enabled, disabled, or deleted. You can also subscribe to notifications for any of these changes in the Activity Feed settings page.
153
149
154
150
The Activity Feed shows the user, date, and action performed when a Destination Filter is created, modified, enabled, disabled, or deleted.
155
151
156
-
**Why am I getting a permissions denied error when I try to save a filter?**
152
+
#### Why am I getting a permissions denied error when I try to save a filter?
157
153
158
154
You must have write access to save and edit filters; read permission allows viewing and testing access only.
159
155
160
-
**How can I test my filter?**
156
+
#### How can I test my filter?
161
157
162
158
Use the Destination Filter tester during setup to verify that you're filtering out the right events. Filtered events show up on the schema page but aren't counted in event deliverability graphs.
Copy file name to clipboardExpand all lines: src/connections/destinations/index.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,9 @@
2
2
title: Destinations Overview
3
3
---
4
4
5
+
Destinations receive data from Segment.
6
+
7
+
5
8
If you just want to explore the Segment destinations, check out the [Destinations catalog](/docs/connections/destinations/catalog/).
6
9
7
10
Select an item from the catalog to learn more about it. The documentation for each destination explains how the Segment Tracking API methods are implemented for that destination.
Copy file name to clipboardExpand all lines: src/connections/sources/index.md
+33-13Lines changed: 33 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,9 @@ excerpt: Detailed information about each Source. Learn how our API methods are i
10
10
11
11
## What is a source?
12
12
13
-
In Segment, you create a source (or more than one!) for each website or app you want to track. While it's not required that you have a single Source for each server, site or app, you should create a Source for each unique source of data.
13
+
A Source is a website, server library, mobile SDK, or cloud application which can send data into Segment. It’s where your data originates. Add a Source to collect data to understand who your customers are and how they’re using your product. Create a source for each website or app you want to track. While it's not required that you have a single source for each server, site, or app, you should create a source for each unique source of data.
14
14
15
-
You can create new sources using the button in the workspace view. Each source you create has a write key, which is used to send data to that source. For example, to load [`analytics.js`, the Segment JavaScript library](https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/) on your page, the snippet on the [Quickstart Guide](https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/quickstart/) includes:
15
+
Each source you create has a write key, which is used to send data to that source. For example, to load [`analytics.js`, the Segment JavaScript library](https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/) on your page, the snippet on the [Quickstart Guide](https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/quickstart/) includes:
Web, Mobile, and Server sources send first-party data from your digital properties. Cloud-app sources send data about your users from your connected web apps such as [Zendesk](/docs/connections/sources/catalog/cloud-apps/zendesk/), [Stripe](/docs/connections/sources/catalog/cloud-apps/stripe/), and [Braze](/docs/connections/sources/catalog/cloud-apps/braze/).
63
+
64
+
## Create a source
65
+
To create a source:
66
+
1. Navigate to **Connections** and click **Add Source**.
67
+
2. Click the Source you’d like to add. *Note:* More than 80% of workspaces start by adding their JavaScript website.
68
+
3. Click **Add Source**.
69
+
4. Enter a name for your source as well as any information on the setup page.
70
+
5. Click **Add Source**.
71
+
52
72
## Website libraries
53
73
54
74
[Analytics.js](/docs/connections/sources/catalog/libraries/website/javascript/), the JavaScript library, is the most powerful way to track customer data from your website. If you're just starting out, Segment recommends it over server-side libraries as the simplest installation for any website.
@@ -79,7 +99,7 @@ Segment's Mobile SDKs are the best way to simplify your iOS, Android, and Xamari
79
99
80
100
## Server
81
101
82
-
Segment's server-side sources let you send analytics data directly from your servers. Segment recommends tracking from your servers when device-mode tracking (tracking on the client) won't work. Check out the [guide on server-side tracking](/docs/guides/how-to-guides/collect-on-client-or-server/) if you're not sure whether it makes sense for your use case.
102
+
Segment's server-side sources let you send analytics data directly from your servers. Segment recommends tracking from your servers when device-mode tracking (tracking on the client) doesn't work. Check out the [guide on server-side tracking](/docs/guides/how-to-guides/collect-on-client-or-server/) if you're not sure whether it makes sense for your use case.
> Server-side data management is when tag sends data to the Segment servers, which then pass that data to the destination system.
114
+
> info "Cloud-mode tracking"
115
+
> Server-side data management is when tag sends data to the Segment servers, which then passes that data to the destination system.
96
116
97
117
---
98
118
99
119
## Cloud Apps
100
120
101
-
Cloud app sources empower you to pull together data from all of your different third-party tools into a Segment warehouse or to your other enabled integrated tools. There are two types of Cloud Apps: **Object** and **Event** sources.
121
+
Cloud app sources empower you to pull together data from all of your different third-party tools into a Segment warehouse or to your other enabled integrated tools. They send data about your users from your connected web apps. There are two types of Cloud Apps: **Object** and **Event** sources.
102
122
103
-
{% include components/reference-button.html href="/docs/connections/sources/sources-compare/" icon="guides.svg" title="Comparing Cloud Sources" description="Wondering which cloud-apps send which types of data? Check out the Cloud Sources comparison!" %}
123
+
{% include components/reference-button.html href="/docs/connections/sources/sources-compare/" icon="guides.svg" title="Comparing Cloud Sources" description="Wondering which cloud-apps send which types of data? Check out the Cloud Sources comparison." %}
0 commit comments