File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
src/connections/sources/catalog/libraries/mobile/apple Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -353,5 +353,24 @@ var body: some Scene {
353353```
354354If you call this method with a valid URL parameter, a Segment ` Deep Link Opened ` track event triggers.
355355
356+ ## Configuration options
357+
358+ ### anonymousIdGenerator
359+ To generate custom anonymousIds instead of relying on the ones Segment creates, you can use the following configuration option:
360+ ``` swift
361+ class MyAnonymousIdGenerator : AnonymousIdGenerator {
362+ func newAnonymousId -> String {
363+ return UUID.uuidString
364+ }
365+ }
366+
367+ // in the apps config:
368+ let config = Configuration (writeKey : " WRITEKEY" )
369+ .anonymousIdGenerator (MyAnonymousIdGenerator ())
370+
371+ let analytics = Analytics (configuration : config)
372+
373+ ```
374+
356375## Changelog
357376[ View the Analytics Swift changelog on GitHub] ( https://github.com/segmentio/analytics-swift/releases ) {: target ="_ blank"}. -->
You can’t perform that action at this time.
0 commit comments