Close sidebar
Microsite for DCR Implementation Examples

Overview

This page contains a sample implementation of how to enable Digital Content Ratings (DCR) video measurement on Google AMP using the cloudapi. Google is allowing developers to implement their video players within an iframe, on an amp page, as the iframe will not implact the load time of the parent page. To view an amp page example using our standard BSDK within an iframe, click here.

AMP Video

Import AMP Analytics Javascript Library

Import the AMP JS library in the <head> of your webpage in order to make an AMP page:

<script async src="https://cdn.ampproject.org/v0.js"></script>
<script async custom-element="amp-video" src="https://cdn.ampproject.org/v0/amp-video-0.1.js"></script>
				

Next, please ensure that the following line is included in the <head> of the webpage:

<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>

Specify the Analytics Provider

DCR measurement can be added to your AMP pages through the AMP-Analytics element:

<amp-analytics type="nielsen">
    <!-- Add Nielsen DCR Tags here -->
</amp-analytics>

Metadata Settings


Name Value
appid 4EB19FD8-BC79-47E0-9BD2-1BC044B1F471
apv 1.0
section Entertainment
segA Music
segB news
segC Branded_Content

More detailed information can be found on the engineering portal or by click here