From 04b093c3b403fea93b2ef0ae421d296418a0c8a9 Mon Sep 17 00:00:00 2001 From: Andrzej Mironowicz Date: Tue, 5 Mar 2024 04:09:20 +0100 Subject: [PATCH 1/2] [PPSDK-232] New methods to track the app installation and updates --- .../mobile/Piwik_PRO_SDK_for_Android.md | 20 +++++++++++++++++++ .../mobile/Piwik_PRO_SDK_for_iOS.md | 20 +++++++++++++++++++ 2 files changed, 40 insertions(+) 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..c5139bc5 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. + +```java + [[PiwikTracker sharedInstance] applicationUpdate]; +``` + ### Tracking outlinks *Requires Analytics* From e281dabd4e490c29759a94319558e7831fefec56 Mon Sep 17 00:00:00 2001 From: Andrzej Mironowicz Date: Tue, 5 Mar 2024 04:11:51 +0100 Subject: [PATCH 2/2] [PPSDK-232] Minor update --- data_collection/mobile/Piwik_PRO_SDK_for_iOS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_collection/mobile/Piwik_PRO_SDK_for_iOS.md b/data_collection/mobile/Piwik_PRO_SDK_for_iOS.md index c5139bc5..eaa8a72a 100644 --- a/data_collection/mobile/Piwik_PRO_SDK_for_iOS.md +++ b/data_collection/mobile/Piwik_PRO_SDK_for_iOS.md @@ -217,7 +217,7 @@ In case of the application being installed but not run, the app installation wil This event is sent to the server only once per application version, when the version number of the application changes. -```java +``` [[PiwikTracker sharedInstance] applicationUpdate]; ```