diff --git a/data_collection/mobile/Piwik_PRO_SDK_for_Android.md b/data_collection/mobile/Piwik_PRO_SDK_for_Android.md index 30888b9e..c0472a3e 100644 --- a/data_collection/mobile/Piwik_PRO_SDK_for_Android.md +++ b/data_collection/mobile/Piwik_PRO_SDK_for_Android.md @@ -258,6 +258,7 @@ No prefixes are used for tracking downloads, but each event of this type use an ### Tracking application installs *Requires Analytics* +> **Warning:** Deprecated since version 1.2.1. We recommend using the new version of the method ([applicationInstall](#tracking-application-installation)). You can also track installations of your application. This event is sent to the server only once per application installation. @@ -266,6 +267,25 @@ You can also track installations of your application. This event is sent to the ``` Application installation is only tracked during the first launch. In the case of the application being installed but not run, the app installation will not be tracked. +### Tracking application installation +*Requires Analytics* + +You can track installations of your application. This event is sent to the server only once per application installation. + +```java + TrackHelper.track().applicationInstall().with(getTracker()); +``` +In case of the application being installed but not run, the app installation will not be tracked. + +### Tracking application updated +*Requires Analytics* + +This event is sent to the server only once per application version, when the version number of the application changes. + +```java + TrackHelper.track().applicationUpdate().with(getTracker()); +``` + ### Tracking outlinks *Requires Analytics* diff --git a/data_collection/mobile/Piwik_PRO_SDK_for_iOS.md b/data_collection/mobile/Piwik_PRO_SDK_for_iOS.md index 7ba3028f..eaa8a72a 100644 --- a/data_collection/mobile/Piwik_PRO_SDK_for_iOS.md +++ b/data_collection/mobile/Piwik_PRO_SDK_for_iOS.md @@ -187,6 +187,7 @@ No prefixes are used for tracking downloads, but each event of this type use an ### Tracking application installs *Requires Analytics* +> **Warning:** Deprecated since version 1.2.3. We recommend using the new version of the method ([applicationInstall](#tracking-application-installation)). You can also track installations of your application. This event is sent to the server only once per application version therefore if you wish to track installs, then you can add it in your application delegate immediately after configuring the tracker. @@ -201,6 +202,25 @@ You can also track installations of your application. This event is sent to the ``` Application installation is only tracked during the first launch. In the case of the application being installed but not run, the app installation will not be tracked. +### Tracking application installation +*Requires Analytics* + +You can track installations of your application. This event is sent to the server only once per application installation. + +``` + [[PiwikTracker sharedInstance] applicationInstall];; +``` +In case of the application being installed but not run, the app installation will not be tracked. + +### Tracking application updated +*Requires Analytics* + +This event is sent to the server only once per application version, when the version number of the application changes. + +``` + [[PiwikTracker sharedInstance] applicationUpdate]; +``` + ### Tracking outlinks *Requires Analytics*