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.
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