Skip to content

Commit 3ba210a

Browse files
committed
clean up swift code sample for clarity
1 parent e221538 commit 3ba210a

File tree

1 file changed

+8
-5
lines changed
  • src/connections/sources/catalog/libraries/mobile/apple/destination-plugins

1 file changed

+8
-5
lines changed

src/connections/sources/catalog/libraries/mobile/apple/destination-plugins/mixpanel-swift.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,17 @@ import SegmentMixpanel // Add this line
5656

5757
After configuring the Analytics Swift library, add the Mixpanel plugin to the analytics timeline:
5858

59-
```
60-
let analytics = Analytics(configuration: Configuration(writeKey: "<YOUR WRITE KEY>")
61-
.flushAt(3)
62-
.trackApplicationLifecycleEvents(true))
59+
```swift
60+
let analytics = Analytics(
61+
configuration: Configuration(writeKey: "<YOUR_WRITE_KEY>")
62+
.flushAt(3)
63+
.trackApplicationLifecycleEvents(true)
64+
)
65+
6366
analytics.add(plugin: MixpanelDestination())
6467
```
6568

66-
Your events will now begin to flow to Mixpanel in device mode.
69+
After you add the plugin, Segment automatically routes your events to Mixpanel in device mode.
6770

6871
## Identify
6972

0 commit comments

Comments
 (0)