void Start()
{
// Set Mixpanel Token: this is project specific
Mixpanel.Token = "cf2fd92b4a900770f961e65208bbb5c4";
// Not sure if this is required or not, clears all super properties in the SuperProperties dictionary
Mixpanel.SuperProperties.Clear();
// Quick way to check if this is the first usage
// Generally put information you care about only recording once in here (install date, version on install, etc)
// See Mixpanel.SendPeople and look into set_once
if(PlayerPrefs.GetInt("FirstUse") == 0)
{
PlayerPrefs.SetInt("FirstUse", 1);
FirstUse(DateTime.Now.ToString(), Mixpanel.DistinctID);
}
// Note that versionNumber is not static, this enables it to be set through the inspector - but also means we have to pull the instance
AddSuperProperties ("Version", MixpanelController.instance.versionNumber);
}