track().applicationInstall

The track().applicationInstall() method records app installations. The event is sent once per installation, the first time the app is launched.

Syntax

TrackHelper.track()
  .applicationInstall()
  .with(tracker)
TrackHelper.track()
  .applicationInstall()
  .with(getTracker());

Examples

To track app installation:

val tracker: Tracker = (application as PiwikApplication).tracker
TrackHelper.track()
  .applicationInstall()
  .with(tracker)
Tracker tracker = ((PiwikApplication) getApplication()).getTracker();
TrackHelper.track()
  .applicationInstall()
  .with(tracker);

Notes

  • The event is sent once per installation. If the app is reinstalled, the event is sent again.

Related methods