track().sendApplicationDownload

The track().sendApplicationDownload() method records app installations. The event is sent the first time the app is launched, once per installation. If a user installs your app but doesn’t run it, the event is not sent.

Syntax

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

Example

To track the installation of your app:

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