segmentio / analytics_flutter

The hassle-free way to add Segment analytics to your Flutter app.
MIT License
29 stars 36 forks source link

Segment Traits Override for MixPanel? #92

Open Michaelpwoo opened 1 month ago

Michaelpwoo commented 1 month ago

Hi,

We've been using the key word company to set the user's company name in MixPanel (prior to using this SDK). We are now using this SDK and I was wondering if it's possible to still keep the data the same? The data that is being set in MixPanel from this SDK is company:{"name":"Fake, Inc."}. Is it possible to override it and match our previous data of company:Fake, Inc.?

Thanks,

edsonjab commented 1 month ago

Hi @Michaelpwoo sorry to answer late, I didn't get your issue.

You can set a company on the group method like this example.

And exist another object on UserTraits that exist the company object with diferent attributes. Like this example.

could you help us with an example about your issue please?