Skip to content

Commit 488edd8

Browse files
authored
automatically collecting common mobile events is a legacy feature so make it false by default to be consistent.
1 parent c633688 commit 488edd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ import Mixpanel
7373
func application(_ application: UIApplication,
7474
didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
7575
...
76-
Mixpanel.initialize(token: "MIXPANEL_TOKEN", trackAutomaticEvents: true)
76+
Mixpanel.initialize(token: "MIXPANEL_TOKEN", trackAutomaticEvents: false)
7777
...
7878
}
7979
```
@@ -104,7 +104,7 @@ import Mixpanel
104104
func application(_ application: UIApplication,
105105
didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
106106
...
107-
Mixpanel.initialize(token: "MIXPANEL_TOKEN", trackAutomaticEvents: true)
107+
Mixpanel.initialize(token: "MIXPANEL_TOKEN", trackAutomaticEvents: false)
108108
Mixpanel.mainInstance().track(event: "Sign Up", properties: [
109109
"source": "Pat's affiliate site",
110110
"Opted out of email": true

0 commit comments

Comments
 (0)