Techdocs

AMP Web SDK

AMP player

MediaAnalytics

MediaAnalytics

new MediaAnalytics(player, configopt, key)

Creates an instance of the MediaAnalytics plugin.

Parameters
Name Type Attributes Description
player akamai.amp.Player

The player instance

config akamai.amp.mediaanalytics.MediaAnalyticsConfig | Object <optional>

The configuration override object, or JSON string. Must adhear to the akamai.amp.mediaanalytics.MediaAnalyticsConfig interface.

key string

The plugin identifier.

Methods

setDimensions

setDimensions(value)

The metric dimesions.

Parameters
Name Type Description
value Object

The dimensions