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/sources/catalog/libraries/mobile/kotlin-android/index.md
+24-24Lines changed: 24 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -343,30 +343,6 @@ analytics.add(yourPlugin)
343
343
See how different platforms and languages use Analytics-Kotlin in different [example projects](https://github.com/segmentio/analytics-kotlin/tree/main/samples){:target="_blank"}.
344
344
The example projects contain sample [plugins](https://github.com/segmentio/analytics-kotlin/tree/main/samples/kotlin-android-app/src/main/java/com/segment/analytics/next/plugins){:target="_blank"} and [destination plugins](https://github.com/segmentio/analytics-kotlin/tree/main/samples/kotlin-android-app-destinations/src/main/java/com/segment/analytics/destinations/plugins){:target="_blank"} you can use.
345
345
346
-
## Destination filters
347
-
> info ""
348
-
> Destination filters are only available to Business Tier customers.
349
-
>
350
-
> Destination filters on mobile device-mode destinations are in beta and only supports Analytics-Kotlin, [Analytics-Swift](/docs/connections/sources/catalog/libraries/mobile/swift-ios/), and [Analytics-React-Native 2.0](/docs/connections/sources/catalog/libraries/mobile/react-native/).
351
-
352
-
Use Analytics Kotlin (Android) to configure [destination filters](docs/connections/destinations/destination-filters/) on your mobile device-mode destinations.
353
-
354
-
> warning ""
355
-
> Keep [these limitations](/docs/connections/destinations/destination-filters/#limitations) in mind when using destination filters.
356
-
357
-
358
-
To get started with destination filters on mobile device-mode destinations using Kotlin:
The Analytics-Kotlin utility methods help you work with plugins from the analytics timeline. They include:
372
348
-[Add](#add)
@@ -466,6 +442,30 @@ analytics.reset()
466
442
{% endcodeexampletab %}
467
443
{% endcodeexample %}
468
444
445
+
## Destination filters
446
+
> info ""
447
+
> Destination filters are only available to Business Tier customers.
448
+
>
449
+
> Destination filters on mobile device-mode destinations are in beta and only supports Analytics-Kotlin, [Analytics-Swift](/docs/connections/sources/catalog/libraries/mobile/swift-ios/), and [Analytics-React-Native 2.0](/docs/connections/sources/catalog/libraries/mobile/react-native/).
450
+
451
+
Use Analytics Kotlin (Android) to configure [destination filters](docs/connections/destinations/destination-filters/) on your mobile device-mode destinations.
452
+
453
+
> warning ""
454
+
> Keep [these limitations](/docs/connections/destinations/destination-filters/#limitations) in mind when using destination filters.
455
+
456
+
457
+
To get started with destination filters on mobile device-mode destinations using Kotlin:
Though you can add plugins anywhere in your code, it's best to implement your plugin when you configure the client.
336
336
337
-
## Destination filters
338
-
> info ""
339
-
> Destination filters are only available to Business Tier customers.
340
-
>
341
-
> Destination filters on mobile device-mode destinations are in beta and only supports Analytics-Swift, [Analytics-Kotlin](/docs/connections/sources/catalog/libraries/mobile/kotlin-android/), and [Analytics-React-Native 2.0](/docs/connections/sources/catalog/libraries/mobile/react-native/).
342
-
343
-
Use Analytics Swift to set up [destination filters](docs/connections/destinations/destination-filters/) on your mobile device-mode destinations.
344
-
345
-
> warning ""
346
-
> Keep [these limitations](/docs/connections/destinations/destination-filters/#limitations) in mind when using destination filters.
347
-
348
-
To get started with destination filters using Swift:
349
-
1. Add the Swift package `git@github.com:segmentio/DestinationFilters-Swift.git` as a dependency through either of these 2 options:
350
-
1. Your package.swift file
351
-
2. Xcode
352
-
1. Xcode 12:**File > Swift Packages > Add Package Dependency**
353
-
2. Xcode 13:**File > Add Packages...**
354
-
355
-
After you install the package, importthe package with `import DestinationFilters_Swift` to reference the Destination Filters plugin.
356
-
2. Add the plugin.
357
-
```swift
358
-
analytics.add(DestinationFilters())
359
-
```
360
-
361
337
## Utility methods
362
338
The Analytics Swift utility methods help you work with [plugins](#plugin-architecture) from the analytics timeline. They include:
363
339
- [Add](#add)
@@ -434,6 +410,30 @@ analytics.flush()
434
410
{% endcodeexampletab %}
435
411
{% endcodeexample %}
436
412
413
+
## Destination filters
414
+
> info ""
415
+
> Destination filters are only available to Business Tier customers.
416
+
>
417
+
> Destination filters on mobile device-mode destinations are in beta and only supports Analytics-Swift, [Analytics-Kotlin](/docs/connections/sources/catalog/libraries/mobile/kotlin-android/), and [Analytics-React-Native 2.0](/docs/connections/sources/catalog/libraries/mobile/react-native/).
418
+
419
+
Use Analytics Swift to set up [destination filters](docs/connections/destinations/destination-filters/) on your mobile device-mode destinations.
420
+
421
+
> warning ""
422
+
> Keep [these limitations](/docs/connections/destinations/destination-filters/#limitations) in mind when using destination filters.
423
+
424
+
To get started with destination filters using Swift:
425
+
1. Add the Swift package `git@github.com:segmentio/DestinationFilters-Swift.git` as a dependency through either of these 2 options:
426
+
1. Your package.swift file
427
+
2. Xcode
428
+
1. Xcode 12:**File > Swift Packages > Add Package Dependency**
429
+
2. Xcode 13:**File > Add Packages...**
430
+
431
+
After you install the package, importthe package with `import DestinationFilters_Swift` to reference the Destination Filters plugin.
432
+
2. Add the plugin.
433
+
```swift
434
+
analytics.add(DestinationFilters())
435
+
```
436
+
437
437
## Ad Tracking and IDFA
438
438
[Segment no longer automatically collects IDFA](/docs/connections/sources/catalog/libraries/mobile/ios/ios14-guide/#segment-no-longer-automatically-collects-idfa). If you need to collect the user's IDFA to pass it to specific destinations, or for other uses, [you can manually pass the IDFA to the Segment SDK](/docs/connections/sources/catalog/libraries/mobile/ios/ios14-guide/#you-can-manually-pass-the-idfa-to-the-segment-sdk).
Copy file name to clipboardExpand all lines: src/guides/filtering-data.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,8 +58,10 @@ Your data is sent to your warehouse (if you have one) and into the Segment backe
58
58

59
59
60
60
To set up destination filters from the Segment web app for the destination from which you want to exclude data:
61
-
1. Navigate to **Connections > Destinations** and select the destination you want to set up filters for.
62
-
2. Go to the **Filters** tab and click **+ New Filter** to create a destination filter.
61
+
1.*(For web device-mode destinations only)* Enable device mode destination filters for your Analytics.js source. To do this, go to your Javascript source and navigate to **Settings > Analytics.js** and turn the toggle on for **Destination Filters**.
62
+
***NOTE:** Destination filters for web device-mode only supports the Analytics.js 2.0 source.
63
+
2. Navigate to **Connections > Destinations** and select the destination you want to set up filters for.
64
+
3. Go to the **Filters** tab and click **+ New Filter** to create a destination filter.
63
65
See the [Destination Filters documentation](/docs/connections/destinations/destination-filters/) for more details.
64
66
65
67
You can set up destination filters using the options presented in the Segment web app, or using Segment's Filter Query Logic (FQL). If you use FQL, your query syntax is limited to 5kb per query.
0 commit comments