Analytics (Android)
Learn how to track analytics in an Android app.
By default, a player's identity within the SDK is neither tracked nor recognized by JWP's analytics. However, adding a player ID to the PlayerConfig
object enables you to use JWP Analytics (plays, time watched) to evaluate the performance of your players:
- Run A/B tests
- Filter Custom Report results
- Create SDK-specific analytics queries through the Management API
Track analytics
To track analytics, you must add the player ID to the PlayerConfig
object.
The player ID added to the
PlayerConfig
object must exist within the property linked to the license key supplied during the SDK setup. Using any other ID will cause associated data to be discarded.
Use the following recipe to add the player ID.
Generate a report
After a player ID has been associated with a player, you can generate reports through one of the following methods listed in below.
Custom Reports
Enables you to turn JWP data into actionable insights and to share the insights in a centralized location
When creating a new report, be sure to use the following steps when selecting metrics and dimensions:
- Under Metrics, select from the following metrics:
- Performance > Plays
- Performance > Time Watched
- Under Group By, select the following options:
- Device > Platform
- Content > Player
- Under Filters, select the following options from the dropdown menus:
- Device
- Platform
- Equals
- Android
API
Enables you to fetch an analytics report over a custom date range
When querying the API, be sure to build your query with the following body parameters.
{
"dimensions": [
"platform_id",
"player_id"
],
"filter": [
{
"operator": "=",
"value": [
"Android"
],
"field": "platform_id"
}
],
"metrics": [
{
"operation": "max",
"field": "plays"
},
{
"operation": "max",
"field": "time_watched"
}
]
}
Updated about 1 year ago