NPAW Analytics#

The NPAW Analytics module integrates NPAW (Nice People At Work) analytics with KWIKplayer to provide detailed playback insights and monitoring.

Initialization#

To enable the NPAW Analytics plugin, provide the following options during player initialization:

window.initPlayer('my-video', {
  npawAnalyticsPlugin: {
    debug: true,
    'content.channel': 'Sports Channel',
    'content.contractedResolution': '1080p',
    'content.cost': '9.99',
    'content.customDimension.1': '1',
    'content.customDimension.2': 'CDN Title',
    'content.episodeTitle': 'Episode 1',
    'content.genre': 'Drama, Thriller',
    'content.id': '12345',
    'content.price': '1.99',
    'content.season': '2',
    'content.title': 'Great Series - Episode 1',
    'content.tvShow': 'Great Series',
    'content.type': 'episode',
    'user.name': 'user123',
  }
})

Options#

Mandatory Options#

The following options should be provided to ensure the plugin works correctly:

OptionTypeDescription
content.channelstringTitle of the content's channel.
content.titlestringCompound title (e.g., "Asset Title - Video Title").
content.idstringUnique ID of the content (equivalent to mediaId).
user.namestringUser ID or 0 for guests.

Optional Options#

You can enhance the analytics tracking by including the following metadata:

OptionTypeDescription
debugbooleanEnables debug mode on window.NpawPlugin.
content.contractedResolutionstringVideo resolution based on user subscription.
content.coststringCost associated with SVOD packages.
content.customDimension.1'0' | '1'Indicates monetization presence (AVOD, SVOD, TVOD, FVOD).
content.customDimension.2stringCDN title for the content.
content.episodeTitlestringTitle of the episode or video.
content.genrestringVideo genres as a comma-separated list.
content.pricestringPrice associated with TVOD packages.
content.seasonstringSeason ID of the content.
content.tvShowstringTitle of the asset or TV show.
content.type'promo'| 'trailer'| 'episode'Type of video.
content.isLivebooleanLive content state.

DRM Support#

The plugin detects and adapts to DRM configurations automatically. If DRM is enabled, the content.drm option is set to 'drm'; otherwise, it defaults to 'no drm'.

Ads Tracking#

The NPAW Analytics module integrates with ads through the following:

  • IMA Adapter: Tracks Google IMA ad events.
  • DAI Adapter: Tracks Dynamic Ad Insertion (DAI) events.