A client for Insights that handles batching, user activity insight, and sending insights at an interval.
track(stat: string, value?: number): void
Track an insight.
Insights are put into a submission queue for batching to save network usage. This means that insights aren’t sent immediately when this method is called.
The insight name. Insights tracked by the Cloud Client must
have the prefix
The number by which to increment this insight (defaults to 1).
Manually submit the insights that have been tracked and stored in the submission queue.
Unless configured differently, insights are automatically sent to Ionic every minute, by default. It may be prudent, however, to call this when you know your app is about to be put to sleep.