mixpanel / sample-android-mixpanel-integration

58 stars 35 forks source link

How do you use MixPanel with different flavors and build types? #9

Open colabug opened 8 years ago

patedit commented 8 years ago

Could you please elaborate?

marcoRS commented 4 years ago

There is different App stores on Android such as the Play Store vs Amazon App Store. The App is essentially the same but there could be data that only makes sense for one app vs the other if one app store supports features.

Can one use the same key/setup but separate out data when needed by package name?

patedit commented 4 years ago

You could definitely have a project token as a build param which will be different for different flavors and resolve that token at runtime.

marcoRS commented 4 years ago

Yeah for sure, I'm aware of that setup my question is whether its best practice to separate by token or if one can collect the data from all apps with the same tokens and just filter out within the Mixpanel dashboard.

patedit commented 4 years ago

Ah, got it. That's a great question. At Mixpanel we used to encourage having different projects projects for different apps. We now have a product in beta called Workspaces where you can create filter views within a project. In your case, you could create two workspaces: one per flavor and do the analysis using the same project token.