Microsite for DCR Implementation Examples
Overview
This page contains a sample implementation of how to enable Digital Content Ratings (DCR) static measurement on Google AMP.
Google AMP
The following guideline will show you how to enable Digital Content Ratings (DCR) Static measurement on Google AMP:
Import AMP Analytics Javascript Library
Import the AMP JS library, the amp-analytics and the amp-consent components in the <head>
<!-- ... amp script... -->
<script async src="https://cdn.ampproject.org/v0.js"></script>
<!-- ... amp-analytics... -->
<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
<!-- ... amp-consent ... -->
<script async custom-element="amp-consent" src="https://cdn.ampproject.org/v0/amp-consent-0.1.js"></script>
External resources
More details about AMP Consent component: