mixpanel / mixpanel-unity

Official Unity Tracking Library for Mixpanel Analytics
https://mixpanel.com
Apache License 2.0
45 stars 38 forks source link

Allow distinct_id to be passed in the Track() call like the other SDKs #133

Closed rohanmayya closed 2 years ago

rohanmayya commented 2 years ago

We handle a lot of stuff on server for which we don't want to repeatedly keep calling Identify() first. Allow us to send distinct_id in a Track() call:

Proposed change: properties["distinct_id"] = properties["distinct_id"] ? properties["distinct_id"] : MixpanelStorage.DistinctId;

in Mixpanel's Controller file