This page covers data collection for the Artist variable. See Artist for the corresponding reporting dimension.
The artist variable is the name of the performing artist for audio content (for example, "Crested Larks"). Use it on music or podcast sessions to break engagement out by performer.
a.media.artistc_contextdata.a.media.artistRecommended implementation types
Set artist inside xdm.mediaCollection.sessionDetails when calling sendEvent:
| code language-javascript |
|---|
|
Pass the artist name as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.AudioMetadataKeys.ARTIST.
| code language-swift |
|---|
|
Pass the artist name as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.AudioMetadataKeys.ARTIST.
| code language-kotlin |
|---|
|
Use createMediaSession to set artist inside sessionDetails:
| code language-brightscript |
|---|
|
Call the sessionStart endpoint with artist inside xdm.mediaCollection.sessionDetails:
| code language-json |
|---|
|
Legacy implementation types (Analytics-only)
Pass the artist in the contextData object using ADB.Media.AudioMetadataKeys.Artist:
| code language-javascript |
|---|
|
Use ADBMobile.media.AudioMetadataKeys.ARTIST to set the artist name in the StandardMediaMetadata property of the media object before calling trackSessionStart:
| code language-javascript |
|---|
|
Use MEDIA_AudioMetadataKeyARTIST to set the artist name in the standard metadata of the media object before calling mediaTrackSessionStart:
| code language-brightscript |
|---|
|
Include media.artist in the params object:
| code language-json |
|---|
|
See the Media Collection API sessions reference for the full request structure.