Techdocs

AMP Web SDK

AMP player

MoatAnalytics

MoatAnalytics

new MoatAnalytics(player, configopt, key)

Creates an instance of the Moat plugin.

Parameters
Name Type Attributes Description
player akamai.amp.Player

The player instance

config akamai.amp.moat.MoatConfig | Object <optional>

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

key string

The plugin identifier.

Methods

track

track()

Invokes Moat tracking.