Make your dimensions actionable with metadata | Mux
Make your dimensions actionable with metadata
Set metadata in your Mux Data SDK to populate dimensions. Use dimensions to search, filter, and segment your video performance metrics by video, player, or viewer.
One of Mux Data's core concepts are dimensions, which are the attributes of a video view that you can use to search, filter, and segment your video performance metrics.
While some of these dimensions are populated automatically, Mux Data allows you to provide details about the video and environment that either can't be detected automatically, can't be accessed if the video fails to load, or should be overridden.
Each dimension corresponds with a metadata key which can be used to set these values. While all metadata details except for env_key are optional, some may be necessary to calculate certain metrics and you'll see more helpful results as you include more.
Dimension Details
Level
Each dimension is either considered basic or advanced. All dimensions are available for the standard retention period of 100 days. Long Term Metrics only support basic dimensions. If you are interested in Long Term Metrics, please reach out to Mux Support.
Long Term Metrics are available on Mux Data Custom Media plan. Long Term Metrics are available on Media Plans. Learn more about Mux Data Plans or contact support.
Scoping
Many of Mux Data's dimensions are scoped to specific categories. Based on the category, they may have different behavior in terms of how these details are updated.
- Video details (prepended by
video_) describe the current video that's playing and are all reset automatically when changing the video. This metadata might come from your internal CMS or video management system. - Player details (prepended by
player_) describe the player configuration that's being used and should be set whenever monitoring is started on a new player. They do not reset when the video is changed. - All other details will persist until explicitly changed.
Type
There are three types of dimensions based on their availability.
Tracking: Enables tracking of additional metrics but are unavailable as dimensions.
Limited: Appear as attributes of a view on the individual view page as well as in the API.
Full: Can be used as filters and breakdowns in aggregate reports, in the video view page and in the API.
High Priority Configurable Metadata
The following dimensions are the most important fields whose metadata keys you should populate in order to get the basic functionality from Mux Data.
Note about viewer_user_id
For viewer_user_id you should not use any value that is personally identifiable on its own (such as email address, username, etc.). Instead, you should supply an anonymized viewer ID which you have stored within your own system.
| Dimension Name | Key Name | Unit | Type | Level | Description |
|---|---|---|---|---|---|
| Environment | env_key |
Unique ID | Required | N/A | Your env key from the Mux dashboard. This field ensures that your data goes into the correct environment. Note this was previously named property_key |
| Video ID | video_id |
Text | Full | basic | Your internal ID for the video. Defaults to the Mux External ID if enabled for Assets and Livestreams hosted by Mux. |
| Video Title | video_title |
Text | Full | basic | Title of the video being played (e.g.: Awesome Show: Pilot). Defaults to the Mux Video Title if enabled for Assets and Livestreams hosted by Mux. |
| Viewer ID | viewer_user_id |
Unique ID | Full | adv | An ID representing the viewer who is watching the stream. Use this to look up video views for an individual viewer. If no value is specified, a unique ID will be generated by the SDK. Note: You should not use any value that is personally identifiable on its own (such as email address, username, etc.). Instead, you should supply an anonymized viewer ID which you have stored within your own system. |
Optional Configurable Metadata
The following dimensions can be set manually using the metadata key name and will be reported by Mux Data. The key name provided below is the snake_case used by Web SDKs. Keynames for iOS and Android SDK use camelCase and may differ in some cases. Review API documentation for API key names.
| Dimension Name | SDK Key Name | Unit | Type | Level | Description |
|---|---|---|---|---|---|
| Audio Codec | video_audio_codec |
Text | Full | adv | The codec of the audio that played during the view. |
| CDN | video_cdn |
Text | Full | basic | CDN delivering the video, either detected by Mux (via response X-CDN header) or specified in the view as video_cdn. Specifying a video_cdn value on the view does not override the detected value, if the X-CDN value is set on the segment response headers. |
| CDN Edge PoP | view_cdn_edge_pop |
Text | Full | adv | Region where the CDN edge point of presence server is located or other origin server identification. |
| Content Type | video_content_type |
Text | Full | basic | The type of content: e.g. short, movie, episode, clip, trailer, or event |
| Client Application Name | view_client_application_name |
Text | Full | adv | Name of the customer application that the viewer is using to watch the content. e.g 'OurBrand iOS App' |
| Client Application Version | view_client_application_version |
Text | Full | adv | Version of the customer application that the viewer is using to view the content. |
| DRM Type | view_drm_type |
Text | Full | adv | The DRM SDK or service that is used for the video playback, such as widevine or playready |
| DRM Level | view_drm_level |
Text | Full | adv | Security level of the specific DRM type. Some DRM types do not have levels. |
| Duration | video_duration |
Milliseconds | Limited | (none) | The length of the video in milliseconds |
| Encoding Variant | video_encoding_variant |
Text | Full | adv | Allows you to compare different encoders or encoding settings. This could designate the encoder used (e.g. x264, hevc, or av1), the preset used (e.g. av1-0, av1-4, or av1-8), or other properties of the encoding you want to track. |
| Experiment Name | experiment_name |
Text | Full | adv | You can use this field to separate views into different experiments, if you would like to filter by this dimension later. |
| Origin | view_cdn_origin |
Text | Full | adv | Identifying name of the Content Origin or Region where the Origin server is located. |
| Page Type | page_type |
Text | Full | adv | Provide the context of the page for more specific analysis. Values include watchpage, iframe, or leave empty. watchpage — A web page that is dedicated to playing a specific video (for example youtube.com/watch/ID or hulu.com/watch/ID) iframe — An iframe specifically used to embed a player on different sites/pages |
| Player Initialization Time | player_init_time |
Milliseconds since Epoch | Tracking | N/A | If you are explicitly loading your player in page (perhaps as a response to a user interaction), include the timestamp (milliseconds since Jan 1 1970) when you initialize the player (or for HTML5 video, when right before you add the element to the DOM) in order to accurately track page load time and player startup time. |
| Player Name | player_name |
Text | Full | basic | You can provide a name for the player (e.g. My Player) if you want to compare different configurations or types of players around your site or application. This is different from the player software (e.g. Video.js), which is tracked automatically by the SDK. |
| Player Version | player_version |
Text | Full | adv | As you make changes to your player you can compare how new versions of your player perform (e.g. 1.2.0). This is not the player software version (e.g. Video.js 5.0.0), which is tracked automatically by the SDK. |
| Sub Property ID | sub_property_id |
Text | Full | basic | A sub property is an optional way to group data within a property. For example, sub properties may be used by a video platform to group data by its own customers, or a media company might use them to distinguish between its many websites. |
| Time Shift Enabled | view_time_shift_enabled |
Boolean | Full | adv | Boolean indicating if this view had timeshift enabled. |
| Used Captions | player_captions_enabled |
Boolean | Full | adv | Boolean indicating if the player used captions at any time during the view. |
| Used PiP | player_pip_enabled |
Boolean | Full | adv | Boolean indicating if the player used Picture in Picture at any time during the view. |
| Video Affiliate | video_affiliate |
Text | Full | adv | Affiliate station that the viewer is watching or associated with the viewer. |
| Video Brand | video_brand |
Text | Full | adv | Brand associated with the video or the brand of the streaming platform the viewer is using to watch the video. |
| Video Codec | video_codec |
Text | Full | adv | The codec of the video that played during the view. |
| Video Dynamic Range Type | video_dynamic_range_type |
Text | Full | adv | The format or type of dynamic range available on the video during the view. |
| Video Language | video_language_code |
Text | Full | adv | The audio language of the video, assuming it's unchangeable after playing. |
| Video Producer | video_producer |
Text | Full | adv | The producer of the video title |
| Video Series | video_series |
Text | Full | basic | The series of the video (e.g.: Season 1) |
| Video Stream Type | video_stream_type |
Text | Full | basic | The type of video stream (e.g: live or on-demand) |
| View Session ID | view_session_id |
Unique ID | Full | adv | An ID that can be used to correlate the view with platform services upstream such as CDN or origin logs. |
| Video Variant Name | video_variant_name |
Text | Full | adv | Allows you to monitor issues with the files of specific versions of the content, for example different audio translations or versions with hard-coded/burned-in subtitles. |
| Video Variant ID | video_variant_id |
Text | Full | adv | Your internal ID for a video variant |
| Viewer Plan | viewer_plan |
Text | Full | adv | Name of the viewer's customer-specific plan, product, or subscription. |
| Viewer Plan Status | viewer_plan_status |
Text | Full | adv | Status pertaining to that viewer's subscription plan (e.g. subscriber, non-subscriber, SVOD, AVOD, free, standard, premium). |
| Viewer Plan Category | viewer_plan_category |
Text | Full | adv | Category of the viewer's customer-specific subscription plan (e.g. bundle-type, subscription-campaign-id). |
| Custom Dimensions | custom_1 - 10 |
Text | Full | adv | Customer-defined metadata |
Overridable Metadata
The following dimensions are populated automatically where the data is supported by the SDK. This data can be overridden by the SDK client implementation using the metadata key name, if needed.
| Dimension Name | Key Name | Unit | Type | Level | Description |
|---|---|---|---|---|---|
| Autoplay | player_autoplay_on |
Boolean | Full | adv | Indicates whether the player was set to autoplay the video or not. This tracks whether the video has autoplay=true set; it is not always able to tell if the browser disregarded the setting, otherwise prevented the video from playing, or if the video play was triggered via a script. |
| Browser | viewer_application_name |
Text | Full | basic | Browser used for the video view (Safari, Chrome, etc.). On Android and iOS applications this defaults to the bundle identifier. |
| Browser Version | viewer_application_version |
Version | Full | adv | Browser version (e.g. 66.0.3359.158). On Android and iOS applications this defaults to the bundle version. |
| Connection Type | viewer_connection_type |
Text | Full | adv | Type of network infrastructure available to the player: wifi, cellular, wired, other; or no_connection if none are available; or unknown if there is infrastructure available but its type cannot be determined. |
| Device Brand | viewer_device_manufacturer |
Text | Full | basic | Device Manufacturer (e.g. Apple, Microsoft, etc.) |
| Device Category | viewer_device_category |
Text | Full | basic | The form factor of the device: camera, car browser, console, desktop, feature phone, peripheral, phone, portable media player, smart display, smart speaker, tablet, tv, wearable |
| Device Model | viewer_device_model |
Text | Full | adv | Device Model (e.g. iPhone11,2) |
| Device Name | viewer_device_name |
Text | Full | basic | Device Name (e.g. iPhone 12) |
| Error Code | player_error_code |
Text | Full | adv | Error code encountered by the player during playback. |
| Operating System | viewer_os_family |
Text | Full | basic | Operating System (iOS, Windows, etc.) |
| Operating System Version | viewer_os_version |
Version | Full | adv | Operating System version (e.g. 10.6) |
| Page URL | page_url |
URL | Limited | adv | Page URL |
| Player Height | player_height |
Integer | Limited | adv | Height of the player as displayed, in logical pixels |
| Player Instance ID | player_instance_id |
Unique ID | Limited | (none) | Identifies the instance of the Player class that is created when a video is initialized |
| Player Language | player_language_code |
Text | Full | adv | Player's text language |
| Player Poster | player_poster |
URL | Limited | (none) | The image shown as the pre-visualization before play |
| Player Software | player_software_name |
Text | Full | basic | Player Software being used to play the Video (e.g. Video.js, JW Player, etc.). Note this was previously named player_software |
| Player Software Version | player_software_version |
Text | Full | adv | Player Software Version (e.g. 2.45.5) |
| Player Width | player_width |
Integer | Limited | (none) | Width of the player as displayed, in logical pixels |
| Preload | player_preload_on |
Boolean | Full | adv | Specifies if the player was configured to load the video when the page loads. |
| Remote Played | player_remote_played |
Boolean | Full | adv | If the video is remote played to AirPlay as specified by the SDK. |
| Source Height | player_source_height |
Integer | Limited | adv | Height of the source video being sent to the player, in pixels |
| Source Width | player_source_width |
Integer | Limited | (none) | Width of the source video being as seen by the player |
| Source Type | video_source_mime_type |
Text | Full | basic | Format of the source, as determined by the player. E.g. application/dash+xml, x-application/mpegUrl, mp4, etc. |
| Used Full Screen | player_is_fullscreen |
Boolean | Limited | adv | Indicates whether the viewer used full screen to watch the video. |
| Video Creator ID | video_creator_id |
Text | Full | adv | A unique identifier for the creator of the video. Defaults to the Mux Creator ID if enabled for Assets and Livestreams hosted by Mux. |
Internal Metadata
The following dimensions are populated automatically by the SDK, and cannot be overridden by the SDK client implementation.
| Dimension Name | Unit | Type | Level | Description |
|---|---|---|---|---|
| ASN | Boolean | Full | adv | The Autonomous System Number (ASN) representing the network provider of the viewer. |
| Audio Codec Initial | Text | Full | adv | Initial codec of the audio that played. Derived from the first value of the audio_codec dimension. |
| CDN Trace | Sequence | Full | adv | Populates all values of video_cdn field over the course of a view. |
| Continent Code | Text | Full | basic | The continent from which the video was accessed, represented as a code. |
| Country | Text | Full | adv | The country from which the video was accessed, represented as a country code. |
| Exited Before Video Start | Boolean | Full | basic | Indicates whether the viewer exited before the video started playing. |
| Mux Asset ID | Unique ID | Full | basic | A unique identifier for the video asset being played. |
| Mux Live Stream ID | Unique ID | Full | basic | The unique identifier of the live stream being played. |
| Mux Playback ID | Text | Full | basic | A unique identifier for the video view. |
| Mux Plugin | Text | Full | adv | The name of the Mux plugin used by the video player. |
| Mux Plugin Version | Text | Full | adv | The version of the Mux plugin used by the video player. |
| Playback Business Exception | Boolean | Full | adv | Indicates whether a business rule-related issue caused playback failure. |
| Playback Failure | Boolean | Full | adv | Indicates whether the playback failed for any reason. |
| Region | Text | Full | adv | The specific region or state where the video was accessed. |
| Source Bitrate | Integer | Limited | adv | Bitrate of the source video in bps. |
| Source Bitrate Initial | Integer | Limited | adv | Initial bitrate of the source video in bps. Derived from the first value of the player_source_bitrate dimension. |
| Source Framerate | Number | Limited | adv | Framerate of the source video. |
| Source Framerate Initial | Number | Limited | adv | Initial framerate of the source video. Derived from the first value of the player_source_fps dimension. |
| Source Height | Integer | Limited | adv | The height (in pixels) of the source currently loaded in the player, regardless of the size of the player. |
| Source Height Initial | Integer | Limited | adv | Initial height (in pixels) of the source currently loaded in the player, regardless of the size of the player. Derived from the first value of the player_source_height dimension. |
| Source Hostname | Text | Full | adv | The hostname of the video source, such as the CDN or media server. |
| Source Width | Integer | Limited | adv | The width (in pixels) of the source currently loaded in the player, regardless of the size of the player. |
| Source Width Initial | Integer | Limited | adv | Initial width (in pixels) of the source currently loaded in the player, regardless of the size of the player. Derived from the first value of the player_source_width dimension. |
| Video Codec Initial | Text | Full | adv | Initial codec of the video that played. Derived from the first value of the video_codec dimension. |
| Video Dynamic Range Type Initial | Text | Full | adv | Initial format or type of dynamic range available on the video that played. Derived from the first value of the video_dynamic_range_type dimension. |
| Video Startup Failure | Boolean | Full | basic | Indicates whether the video failed to start due to an error. |
| Video Startup Business Exception | Boolean | Full | adv | Indicates whether a business rule-related issue caused a video startup failure. |
| View Dropped | Boolean | Full | adv | Boolean indicating whether the view was finalized without an explicit viewend event. |
| View Has Ad | Boolean | Full | basic | Indicates whether the video view included an ad. |