# Nielsen DCR
ByteArk Player integrates with Nielsen DCR (opens new window) to send playback analytics to Nielsen. This lets websites using ByteArk Video Player report playback statistics to Nielsen DCR with the metadata defined by Nielsen.
# Enable
Enable Nielsen DCR via the bytearkNielsen plugin in options:
var player = bytearkPlayer('video-player', {
fluid: true,
plugins: {
bytearkNielsen: {
appId: '<NIELSEN_APP_ID>',
sfCode: 'th',
// ... additional Nielsen config
}
},
sources: [{
title: 'Big Buck Bunny',
src: '<MEDIA_URL>',
type: 'application/x-mpegURL',
nielsen: {
// per-source Nielsen metadata
}
}]
});
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Options
| Name | Type | Required | Description |
|---|---|---|---|
| appId | String | Yes | Nielsen App ID |
| sfCode | String | Yes | Nielsen country SF Code (e.g., th) |
| nolDevDebug | String | No | Debug flag: DEBUG for development, INFO for production |
# Source metadata
Each source can include Nielsen-specific metadata via the nielsen key:
| Name | Type | Description |
|---|---|---|
| channelName | String | Channel name |
| clientId | String | Nielsen client ID |
| subBrandId | String | Sub-brand ID |
| type | String | Content type, e.g., content |
| assetId | String | Unique asset ID |
| program | String | Program name |
| title | String | Episode title |
| length | Number | Video length in seconds |
| segB / segC | String | Custom segments |
| isFullEpisode | String | y or n |
| adLoadType | String | 1 = Linear, 2 = Dynamic |
For detailed field descriptions, see the Nielsen DCR documentation (opens new window).