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/apple/live-plugins.md
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -16,12 +16,10 @@ You can use JavaScript live plugins with Analytics-Swift and Analytics-Kotlin to
16
16
17
17
Because live plugins let you modify event data before it leaves a mobile device, you can use the same function to modify data meant for all your cloud-mode and device-mode destinations.
18
18
19
-
## Live plugin setup
19
+
## Setup
20
20
21
21
To use live plugins, you first need to set up your mobile app with a one-time configuration.
22
22
23
-
### One-time configuration
24
-
25
23
To configure live plugins:
26
24
27
25
1. Include the [Analytics Live for Swift plugin](https://github.com/segment-integrations/analytics-swift-live){:target="_blank"}
@@ -57,7 +55,7 @@ After you've completed setup, you can deploy your apps to the Apple App Store an
57
55
58
56
This section walks you through a sample live plugin implementation.
59
57
60
-
### Write a live plugin in JavaScript
58
+
### 1. Write a live plugin in JavaScript
61
59
62
60
Copy and save the following file, which anonymizes events by removing user IDs and device IDs:
63
61
@@ -75,19 +73,19 @@ class PrivacyLivePlugin extends LivePlugin {
75
73
76
74
Note the name of your saved file. You'll need it in the next step.
77
75
78
-
### Deploy the plugin with the Live Plugin CLI
76
+
### 2. Deploy the plugin with the Live Plugin CLI
79
77
80
78
With your plugin saved, you'll next deploy the plugin with Segment's Live Plugin CLI. Follow these steps:
0 commit comments