DCR Static Google AMP Cloud API: Difference between revisions
From Engineering Client Portal
No edit summary |
No edit summary |
||
Line 70: | Line 70: | ||
| section || maximum of 25 unique values (section <= 25) | | section || maximum of 25 unique values (section <= 25) | ||
|- | |- | ||
| segA || total sum of segA, segB, and segC must be a maximum of 24 unique values (segA + segB + segC <= | | segA || total sum of segA, segB, and segC must be a maximum of 24 unique values (segA + segB + segC <= 24) | ||
|- | |- | ||
| segB || total sum of segA, segB, and segC must be a maximum of 24 unique values (segA + segB + segC <= | | segB || total sum of segA, segB, and segC must be a maximum of 24 unique values (segA + segB + segC <= 24) | ||
|- | |- | ||
| segC || total sum of segA, segB, and segC must be a maximum of 24 unique values (segA + segB + segC <= | | segC || total sum of segA, segB, and segC must be a maximum of 24 unique values (segA + segB + segC <= 24) | ||
|} | |} | ||
=== Example Implementation === | === Example Implementation === |
Revision as of 21:09, 25 May 2017
This guide will show you how to enable Digital Content Ratings (DCR) Static measurement on Google AMP.
Implementation Steps
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>
For more information on the Analytics type, you can refer to the Analytics vendors section of Google's AMP Developer Documentation.
Configure Metadata
You will need to match the metadata fields on your AMP page with those of your non-AMP page.
Metadata Keys
The Nielsen reserved keys are:
Key | Description | Example Value | Required |
---|---|---|---|
apid | unique ID assigned by Nielsen | XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX |
✓ |
apv | current version of the Nielsen implementation | 1.0 |
✓ |
section | section of the site to be measured | Entertainment |
✓ |
segA | custom segment to be used to break out reporting | Music |
|
segB | custom segment to be used to break out reporting | News |
|
segC | custom segment to be used to break out reporting | Branded_Content |
The values passed through the Nielsen keys will determine the breakouts you will see in reporting. If you decide not to use custom segments A, B, and C, then you do not need to pass a value in these keys. It is suggested you use the same segments used in non-AMP pages.
Metadata for Reporting
You can reference the table to determine how the metadata you pass is used to define your reporting structure:
Reporting Level | Key | Description |
---|---|---|
Brand | apid | brand is determined by assigned App ID passed during initialization |
Sub-brand | apid | sub-brand is determined is determined by assigned App ID passed during initialization |
Section | section | section or category for the AMP page |
Custom Segment A | segA | available segment for custom reporting. Custom segments will roll into the sub-brand |
Custom Segment B | segB | available segment for custom reporting. Custom segments will roll into the sub-brand |
Custom Segment C | segC | available segment for custom reporting. Custom segments will roll into the sub-brand |
If you would like your AMP pages to report into the same reporting structure as your website, we recommend passing the same dynamic metadata in Section, Custom Segment A, and Custom Segment B as you are on your website. This way your AMP pageviews contribute to those aggregations.
Aggregation Limits
There are limits on the number of unique values that can be aggregated on in reporting. The specific limitations by key are:
Key | Aggregation Limit |
---|---|
section | maximum of 25 unique values (section <= 25) |
segA | total sum of segA, segB, and segC must be a maximum of 24 unique values (segA + segB + segC <= 24) |
segB | total sum of segA, segB, and segC must be a maximum of 24 unique values (segA + segB + segC <= 24) |
segC | total sum of segA, segB, and segC must be a maximum of 24 unique values (segA + segB + segC <= 24) |
Example Implementation
The below is an example implementation of Nielsen measurement on an AMP page:
<amp-analytics type="nielsen">
<script type="application/json">
{
"vars": {
"apid": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"apv": "1.0"
"assetName": "Entertainment",
"segA": "Music",
"segB": "News",
"segC": "Branded_Content"
}
}
</script>
</amp-analytics>
Privacy Policy
Nielsen uses cookies for browser measurement. In order to comply with our privacy restrictions, we ask that you make a link to our Digital Privacy Policy available on your site. You can find our privacy policy here: http://www.nielsen.com/digitalprivacy#choice