Skip to content

Commit

Permalink
automatically collecting common mobile events is a legacy feature so …
Browse files Browse the repository at this point in the history
…make it false by default to be consistent.
  • Loading branch information
zihejia authored Jan 9, 2024
1 parent c633688 commit 488edd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ import Mixpanel
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
...
Mixpanel.initialize(token: "MIXPANEL_TOKEN", trackAutomaticEvents: true)
Mixpanel.initialize(token: "MIXPANEL_TOKEN", trackAutomaticEvents: false)
...
}
```
Expand Down Expand Up @@ -104,7 +104,7 @@ import Mixpanel
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
...
Mixpanel.initialize(token: "MIXPANEL_TOKEN", trackAutomaticEvents: true)
Mixpanel.initialize(token: "MIXPANEL_TOKEN", trackAutomaticEvents: false)
Mixpanel.mainInstance().track(event: "Sign Up", properties: [
"source": "Pat's affiliate site",
"Opted out of email": true
Expand Down

0 comments on commit 488edd8

Please sign in to comment.