Skip to content

Comscore Analytics plugin

This plugin allows you to track your media content in Comscore. It supports VOD, livestreams, and ads tracking.

Prerequisites

Prerequisites include:

  • Wowza Flowplayer.
  • The ads plugin, if you want to measure ads.

Installation

Add the plugin next to the core player:

<script src="//cdn.flowplayer.com/releases/native/3/stable/flowplayer.min.js"></script>
<script src="//cdn.flowplayer.com/releases/native/3/stable/plugins/comscore.min.js"></script>
<!-- add further plugins if required -->

Configuration (mandatory)

You can configure the plugin with top level configuration option comscore .

Example of top level configuration:

comscore: {
	account_id: "your-comscoure-account-id",
	c3: "your-c3-value",
	media_title: "[media_name]",
	media_id: "[media_id]",
	ns_st_ep: "episode name",
	ns_st_ia: "",
	ns_st_c4: "",
	ns_st_c6: ""
}

Configuration properties:

propertydescription
account_idYour Comscore account id, also referred to as c2
c3The c3 value provided to you by Comscore
media_titleUse string directly or [media_name] as a placeholder for media title in metadata event
media_idUse string directly or [media_id] as a placeholder for media id in metadata event.
ns_st_*There are several more Comscore values that can be specified in the config. Please read the general Comscore documentation for all available properties.

Tracked events

The plugin tracks the following events:

eventdescription
ad_startedSent at the start of each ad
ad_completeSent at end of each ad
video_startedSent first time the video/livestream playback starts
video_resumeSent each time the video/livestream playback starts after being paused
video_resumeSent each time the video/livestream playback is paused
video_completeSent when the video/livesteam has finished playing