Overview
To enable the wide range of reports that OPF delivers out-of-the-box and to empower operators to create their own reports, the client must send certain data to the OPF platform for processing and storage.
The reported data is used to generate analytics reports that are available through TV Analytics.
The reported data is not available for querying by the client application.
You should follow the guidance below to report the relevant activities and to structure and provide the right data for those activities.
What your client must report
Report the following activities by making the request described under Request:
-
Playback activities, for example
playbackStartandplaybackStop -
App, advertising, error and privacy activities
-
Deep links and downloads (
deepLinkTriggered,downloadTriggered) -
Rail activities (
railView,railSelection) -
Ratings (
rating) – see Rate content for a user profile -
Favourites (
favourite,unfavourite) – see the note below
Favourites – temporary requirement. Store favourites through the favourites endpoints as usual. Also report a favourite activity when the user adds a favourite and an unfavourite activity when they remove one, with the contentType and ID shown under Required data in the Recommendations section, so that favourites are used for recommendations. This requirement will be removed in a future release.
What your client does not need to report
The platform records the following itself, so your client does not need to report them as activities:
-
Bookmarks, playlists and reminders – your client manages these through the endpoints described in Personalisation.
-
Purchases and cancelled purchases
-
Recording requests (scheduling and cancelling recordings)
Any value within the metadata section can be left blank, but you need to understand that this data will not be available for processing or reporting. In addition, the client can add additional values in the metadata section in the key-value pair format as required – these additional values will be stored and available for custom reporting.
Prior to release 21.38, clients were required to report such activity and metrics separately so the recommendation engine used could provide personalised recommendations.
Since release 21.38, clients can report activity and metrics as described below and they will be passed on to the recommendation engine automatically without the client having to report them separately.
Certification
You are expected to validate your integration to ensure that it complies with NAGRAVISION’s standards, ensuring accurate and efficient data reporting.
See the UAV/insight Certification Guide.
Request
To report metrics, make the following POST request:
http://<host>:<port>/useractivityvault/v1/useractivity/{activityName}
where activityName is the name of the activity you are reporting. You can use any name that you want, but the following are activity names that Platform understands and associates with regular (non-custom) reports:
-
privacyPolicy -
appStart -
appEnd -
playbackStart -
playbackStop -
playbackPause -
playbackResume -
playbackSkipAhead -
playbackSkipBack -
adWatched -
adDelivered -
adSkipped -
playbackHeartbeat
-
watch -
playback_metrics -
playerError -
appError -
thirdPartyAppStart -
returnToLauncher -
deepLinkTriggered -
downloadTriggered -
railView -
railSelection -
rating
These are explained in more detail in the Activities section below.
This API allows the client to report any activity or action that the operator feels is important or of value for capture. The documented activities below are the suggested actions for capture.
Headers
-
Content-Type: application/json -
Authorisation
Mandatory arguments
-
accountId -
userId– must be set to""(empty string) -
deviceId -
key– must be set to""(empty string)
The following arguments are not strictly mandatory (that is, omitting them will not cause the request to fail), but are required for full and correct reporting. They are all specified as key/value pairs in the metadata block:
-
appSessionId– theappSessionIdis used to indicate a period of time wherein a user interacts with the app. Usually triggered by the opening of an app, a session records the length and frequency of app use to show developers, marketers and product managers how much time users spend within an app. An app session id should be generated/starts when a user opens an application and ends when they exit it. -
playbackSessionId– playback session ID, this session is specific to the playout of content, each time the content being played out is changed a new session ID should be generated and used when reporting playout session actions. -
editorialId– the ID of the editorial, which provides a unique content reference, -
contentSource– one of the following:-
IPTV– TV content is delivered over an IP network (not the open Internet) -
OTT– TV content is deliver over-the-top (OTT), that is, via the Internet -
Blend– a mixture of IPTV and OTT
-
-
contentType– indicates the type of content being consumed: see the table below for expected values.
|
Description of Possible Content Types |
Corresponding Content-Type Value to use |
|---|---|
|
VOD content or long-term catchup event |
|
|
An event recorded through NPVR |
|
|
A live event |
|
|
An short-term catchup event |
|
|
Long-term catchup content |
|
|
A start-over event |
|
|
Download-to-go (D2G) content Note: any content that is being played back from local storage is considered D2G. |
|
|
Deep link triggered |
|
|
Third-party app start |
|
|
Return to launcher |
|
Note on metadata
Clients are free to report any additional metadata in the standard key-value pair format. Any metadata that does not map directly to the definitions in the activities section below will still be stored in the Data Warehouse and be available for custom reporting.
It will be stored in a generic metadata table that can be joined via the activity ID. This allows the client to report any new data or additional data as required without having to make any changes to the Data Warehouse schema.
Recommendations
Activities reported through this interface are also used to drive recommendations from the partner recommendation engine. You do not need to report them separately.
For each activity that it uses, OPF sends the recommendation engine a weighting that indicates how strongly the activity signals the user’s interest in the content. Weightings are increments: each reported activity adds its weighting to the user’s score for that content, so content that the user keeps engaging with rises over time, while a negative weighting (for example, when a favourite is removed) lowers it.
A rating works differently: it sets the user’s score for the content from the rating value, replacing the score built up from activities. Later activities then adjust that score again.
The weightings, and the way ratings are applied, are configurable for each deployment. If you require them to be changed, please contact your NAGRAVISION representative.
Activities that your client reports
|
Activity |
Default weighting per activity |
|---|---|
|
|
+0.2 |
|
|
−0.05 |
|
|
+0.5 |
|
|
+0.5 |
|
|
Set from the rating – see Ratings below |
|
|
+0.5 |
|
|
−0.5 |
In release 26.26, deepLinkTriggered activities are used for recommendations only if your deployment’s configuration has been updated to accept them. If you need deep links to be used for recommendations, contact your NAGRAVISION representative.
Activities that the platform reports
|
Activity |
Default weighting per activity |
|---|---|
|
|
+0.7 |
|
|
−0.7 |
|
|
+0.5 |
|
|
−0.5 |
|
|
+0.025 |
|
|
+0.1 |
|
|
+0.1 |
Bookmarks, playlists and reminders are not currently passed to the recommendation engine, so these weightings do not yet take effect.
All other activities – including playback_metrics, playbackHeartbeat, playbackPause, playbackResume, playbackSkipAhead, playbackSkipBack and the deprecated watch – are used for analytics and reporting only. From release 26.26, watch is no longer used for recommendations; report playbackStart instead.
Ratings
For recommendations, a rating must be a whole number from 1 to 10. By default, ratings are converted as follows:
|
Rating |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
|---|---|---|---|---|---|---|---|---|---|---|
|
Score |
−0.9 |
−0.7 |
−0.5 |
−0.3 |
−0.1 |
+0.1 |
+0.3 |
+0.5 |
+0.7 |
+0.9 |
A rating with any other value is stored by UAV but is not used for recommendations. To report a rating, see Rate content for a user profile.
Required data
To be used for recommendations, an activity must include, in its metadata block, a contentType from the following table together with the ID listed for that content type. An activity without them is still stored and available for reporting, but it is not used for recommendations.
|
Content |
contentType |
Required ID |
|---|---|---|
|
VOD and download-to-go |
|
|
|
Live TV, short-term catch-up and start-over |
|
|
|
Deep link |
|
|
|
Series |
|
|
|
Season |
|
|
|
Channel |
|
|
Field names and contentType values are case-sensitive.
By default, activities with contentType npvr-event or vod-ltcu-event are not used for recommendations. If you need them to be, contact your NAGRAVISION representative.
If your deployment requires data protection consent for recommendations, the activity must also carry the user’s consentMask – see Consent management.
Activities
We recommend your client app report the following types of activity with the aim of providing at least the listed metadata. In some cases, not all of the metadata will be available.
For details of the fields that you need to provide in these requests, see Fields for metrics reporting.
The activities are described in the following pages: