Call of Mixpanel.Track() method may unexpectedly throw a PlayerPrefsException in WebGL builds due to exceeding the allocated browser storage capacity (IndexedDB). Especially on mobile devices. My case - WebGL application in Telegram as Telegram Mini App.
Potential reasons causing this issue:
- API endpoint is unavailable
- Ambigious(but still under API limits) amount of events data
Expected result: Calling this function should be safe, with any exceptions handled internally by the Mixpanel library. Ideally, a solution to prevent data loss caused by storage overflow should also be considered.