Techdocs

AMP Web SDK

AMP player

akamai.amp.CmcdConfig

CMCD configuration interface.

Example

var config = {
  cmcd: {
    enabled: true,
    sessionId: "b248658d-1d1a-4039-91d0-8c08ba597da5",
    useHeaders: true
  }
};

Extends

Members

contentId

:string

Sets an unique string identifying the current content

debug

:boolean

The debug flag.

Inherited From:

enabled

:boolean

Flag used to enable/disable a plugin

Inherited From:

resources

:Array.<akamai.amp.PlayerResource>

List of resources to be loaded upon instantiation of the player.

Inherited From:

sessionId

:string

Overrides session id

useHeaders

:string

If true CMCD data will be reported through custom request headers instead