Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func trackSignUp(withConsumerId consumerId: String) {
- Mixpanel.mainInstance().identify(distinctId: consumerId)
- }
- func updateUserProfile(withConsumerProfile consumerProfile: [String : Any]) {
- if var profile = consumerProfile as? [String:MixpanelType] {
- profile["$name"] = profile.removeValue(forKey: "name")
- profile["$phone"] = profile.removeValue(forKey: "phone")
- profile["$email"] = profile.removeValue(forKey: "email")
- Mixpanel.mainInstance().people.set(properties: profile)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement