Skip to main content

Comscore Direct

Comscore Direct is a tool that provides real-time reporting and analysis of online advertising campaigns. It allows advertisers and agencies to monitor the performance of their digital campaigns across multiple platforms, including desktop and mobile devices. The tool provides insights into key metrics such as impressions, clicks, viewability, and engagement rates, which can help advertisers optimize their campaigns and make data-driven decisions.

Configuration

AttributeTypeRequiredDescription
enabledbooleanYesEnable the plugin (Defaults to false if no value is given.)
publisherIdstringYesProvide your Publisher ID value. The Publisher ID is often also referred to as the Client ID or c2 value.
publisherSecretstringNoProvide a string with your Publisher Secret value.
userHasConsentbooleanNoIf you are using a Consent Management Platform (CMP) which implements iAB Transparency and Consent Framework (TCF) version 2.0 then Comscore Publisher Tag integrates with the CMP to automatically collect user consent. No additional steps are necessary to enable this integration, however if you are not using a Consent Management Platform, you can manually ask user for consent and give here.
appNamestringNoTitle of the page that your video is playing. (Defaults to HTML title tag.)
autoUpdateMode"FOREGROUND_ONLY" | "FOREGROUND_AND_BACKGROUND" | "DISABLED"NoThis setting controls if the library will update application usage times at a regular interval. (Defaults to FOREGROUND_ONLY)
autoUpdateIntervalnumberNoThe interval in seconds at which the library automatically updates usage times if the auto-update is enabled. (Defaults to 60, which is also the minimum value.)
metadataObject<[key: string]: string>NoMetadata to be sent to comscore.
const config = {
...
plugins: {
...
comscore: {
enabled: true,
publisherId: "PUBLISHER_ID_PROVIDED_BY_COMSCORE",
publisherSecret: "PUBLISHER_SECRET_PROVIDED_BY_COMSCORE",
userHasConsent: true,
appName: "Lura Player Included Application",
autoUpdateMode: "FOREGROUND_ONLY",
autoUpdateInterval: 60,
metadata: {
key: "value"
}
},
...
},
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);