sendApplicationDownload

The 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

[[PiwikTracker sharedInstance] sendApplicationDownload];

Example

To track the installation of your app:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Configure the tracker in your application delegate [PiwikTracker sharedInstanceWithSiteID:@"site-id" baseURL:[NSURL URLWithString:@"account-name"]]; [[PiwikTracker sharedInstance] sendApplicationDownload]; return YES; }

Notes

  • It's best to add sendApplicationDownload() to your app delegate immediately after configuring the tracker because this event is only sent to the server once per app version.

Did this page help you?