Skip to content

Commit 4bb4323

Browse files
committed
more edits [netlify-build]
1 parent c9fa640 commit 4bb4323

File tree

3 files changed

+52
-50
lines changed

3 files changed

+52
-50
lines changed

src/connections/sources/catalog/libraries/mobile/kotlin-android/index.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -343,30 +343,6 @@ analytics.add(yourPlugin)
343343
See how different platforms and languages use Analytics-Kotlin in different [example projects](https://github.com/segmentio/analytics-kotlin/tree/main/samples){:target="_blank"}.
344344
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.
345345

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:
359-
360-
1. Download and install the dependency.
361-
```java
362-
implementation 'com.segment.analytics.kotlin:destination-filters-kotlin:x.x.x'
363-
```
364-
365-
2. Add the plugin.
366-
```java
367-
analytics.add(DestinationFilters())
368-
```
369-
370346
## Utility methods
371347
The Analytics-Kotlin utility methods help you work with plugins from the analytics timeline. They include:
372348
- [Add](#add)
@@ -466,6 +442,30 @@ analytics.reset()
466442
{% endcodeexampletab %}
467443
{% endcodeexample %}
468444

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:
458+
459+
1. Download and install the dependency.
460+
```java
461+
implementation 'com.segment.analytics.kotlin:destination-filters-kotlin:x.x.x'
462+
```
463+
464+
2. Add the plugin.
465+
```java
466+
analytics.add(DestinationFilters())
467+
```
468+
469469
## Build Your own destination
470470

471471
If Segment doesn't support your Kotlin destination, you can build your own with the template Segment provides.

src/connections/sources/catalog/libraries/mobile/swift-ios/index.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -334,30 +334,6 @@ analytics.add(plugin: yourIntegration)
334334

335335
Though you can add plugins anywhere in your code, it's best to implement your plugin when you configure the client.
336336

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, import the package with `import DestinationFilters_Swift` to reference the Destination Filters plugin.
356-
2. Add the plugin.
357-
```swift
358-
analytics.add(DestinationFilters())
359-
```
360-
361337
## Utility methods
362338
The Analytics Swift utility methods help you work with [plugins](#plugin-architecture) from the analytics timeline. They include:
363339
- [Add](#add)
@@ -434,6 +410,30 @@ analytics.flush()
434410
{% endcodeexampletab %}
435411
{% endcodeexample %}
436412

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, import the package with `import DestinationFilters_Swift` to reference the Destination Filters plugin.
432+
2. Add the plugin.
433+
```swift
434+
analytics.add(DestinationFilters())
435+
```
436+
437437
## Ad Tracking and IDFA
438438
[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).
439439

src/guides/filtering-data.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ Your data is sent to your warehouse (if you have one) and into the Segment backe
5858
![](images/destination-filter-create.png)
5959

6060
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.
6365
See the [Destination Filters documentation](/docs/connections/destinations/destination-filters/) for more details.
6466

6567
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

Comments
 (0)