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