Close sidebar
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:

X

Privacy Policy

Insert here your privacy policy

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

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: