This page covers data collection for the Show variable. See Show for the corresponding reporting dimension.
The show variable is the program or series name (for example, "Blinding Light" or "Coastline Mysteries"). Set it on every session whose content belongs to a series so that episodes across multiple seasons roll up to a single line item in the Show dimension. Leave it unset for one-off content that is not part of a series.
a.media.showWeb SDK
Set show inside mediaCollection.sessionDetails when calling sendEvent:
alloy("sendEvent", {
xdm: {
eventType: "media.sessionStart",
mediaCollection: {
sessionDetails: {
show: "Blinding Light"
},
playhead: 0
}
}
});
Mobile SDK
Pass the show name as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.VideoMetadataKeys.SHOW.
iOS (Swift)
var metadata: [String: String] = [:]
metadata[MediaConstants.VideoMetadataKeys.SHOW] = "Blinding Light"
tracker.trackSessionStart(info: mediaObject, metadata: metadata)
Android (Kotlin)
val metadata = HashMap<String, String>()
metadata[MediaConstants.VideoMetadataKeys.SHOW] = "Blinding Light"
tracker.trackSessionStart(mediaInfo, metadata)
Roku (BrightScript)
Use createMediaSession to set show inside sessionDetails:
m.aepSdk.createMediaSession({
"xdm": {
"eventType": "media.sessionStart",
"mediaCollection": {
"sessionDetails": {
"show": "Blinding Light"
},
"playhead": 0
}
}
})
Media Edge API
Call the sessionStart endpoint with show inside mediaCollection.sessionDetails:
{
"events": [{
"xdm": {
"eventType": "media.sessionStart",
"mediaCollection": {
"sessionDetails": {
"name": "video-123",
"length": 128,
"contentType": "vod",
"playerName": "HTML5 Player",
"channel": "Sports",
"show": "Blinding Light"
},
"playhead": 0
}
}
}]
}
Media SDK
Pass the show name in the contextData object using ADB.Media.VideoMetadataKeys.Show:
var contextData = {};
contextData[ADB.Media.VideoMetadataKeys.Show] = "Blinding Light";
tracker.trackSessionStart(mediaInfo, contextData);
Media Collection API
Include media.show in the params object of your sessionStart POST request:
{
"playerTime": { "playhead": 0, "ts": 1699523820000 },
"eventType": "sessionStart",
"params": {
"media.show": "Blinding Light"
}
}
See the Media Collection API sessions reference for the full request structure.