Insights

View on Github

A client for Insights that handles batching, user activity insight, and sending insights at an interval.

Properties

optionsInsightsOptions

Methods

track(statstringvalue?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.

stat

The insight name. Insights tracked by the Cloud Client must have the prefix mobileapp. For example, an insight would track the number of login button clicks could be named mobileapp.login_button.clicks.

value (optional)

The number by which to increment this insight (defaults to 1).

submit()

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.

Services

    API

      General