From 488edd81fdaa8ccc4ef1ede5543d6d95ae85b3c9 Mon Sep 17 00:00:00 2001 From: Zihe Jia <36679208+zihejia@users.noreply.github.com> Date: Mon, 8 Jan 2024 21:47:45 -0800 Subject: [PATCH] automatically collecting common mobile events is a legacy feature so make it false by default to be consistent. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1ddba739..b1909f78 100644 --- a/README.md +++ b/README.md @@ -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) ... } ``` @@ -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