Mobile apps tracking
Last updated
Last updated
In order to track activities on your mobile app, you'll need to keep in mind the following :
All mobile user activities need to be sent to mediarithmics using the Tracking API
The Signature authentication should be used to authenticate any requests between your app and mediarithmics. Don't hesitate to contact your Account manager to have more information about this.
The activity and events in the payload need to comply with mobile app specificities described in the next section
The user agent identifier ($user_agent_id) needs to be particularly formatted using mobile application identifiers guidelines
The first option is to integrate a small piece of code (approx. 100 lines) into the mobile application to execute calls to the mediarithmics tracking API. Sample code for iOS and Android is available in the Authentication section (see illustration below).
The second option is to re-use an existing analytics tool. It is then possible to transfer events from the analytics solution's server to the mediarithmics API.
In the context of Mobile App Tracking, predefined event names are available out-of-the-box to simplify and automate event processing (full list of predefined event names):
app open event ($app_open
) corresponds to the opening of the app and app resume event (when the app becomes active again)
app install event ($app_install
)
app update event ($app_update
)
The install and update events are automatically calculated on server side and you don't have to send them :
The install event ($app_install
) is triggered the first time an app open event is received for a user, regardless if the user is new or existing.
The update event ($app_update
) is triggered when the SDK version, app version or OS version changes from one open to the next.
In the context of Mobile App Tracking, some fields of the User Activity objects have a limited set of possible values. Details below:
Field | Type | Description |
---|---|---|
$type | String enum | The activity type should only be |
$session_status | String enum | The sessions status should be:
|
$user_agent_id | String (Optional) | The user agent identifier of the user device containing a unified representation of an advertising id.
Ex: |
$app_id | String | The mobile app id (previously created through Navigator / API) |