This page covers data collection for the Episode variable. See Episode for the corresponding reporting dimension.
The episode variable is the episode number within the season (typically a string integer like "13"). Pair with Show and Season so engagement can be broken out by individual episode.
a.media.episodec_contextdata.a.media.episodeRecommended implementation types
Set episode inside xdm.mediaCollection.sessionDetails when calling sendEvent:
| code language-javascript |
|---|
|
Pass the episode number as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.VideoMetadataKeys.EPISODE.
| code language-swift |
|---|
|
Pass the episode number as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.VideoMetadataKeys.EPISODE.
| code language-kotlin |
|---|
|
Use createMediaSession to set episode inside sessionDetails:
| code language-brightscript |
|---|
|
Call the sessionStart endpoint with episode inside xdm.mediaCollection.sessionDetails:
| code language-json |
|---|
|
Legacy implementation types (Analytics-only)
Pass the episode in the contextData object using ADB.Media.VideoMetadataKeys.Episode:
| code language-javascript |
|---|
|
Use ADBMobile.media.VideoMetadataKeys.EPISODE to set the episode number in the StandardMediaMetadata property of the media object before calling trackSessionStart:
| code language-javascript |
|---|
|
Include media.episode in the params object:
| code language-json |
|---|
|
See the Media Collection API sessions reference for the full request structure.