track().sendApplicationDownload
DeprecatedThis method is no longer recommended. Use track().applicationInstall() instead.
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);Notes
- This method fires at most once per app version. Use track().applicationInstall() instead, which fires at most once per device installation.
Related methods
Updated 14 days ago