Google AMP Implementation


Pages using Google's Accelerated Mobile Pages Project (AMP) can implement our code through an <amp-analytics> tag, as shown in the example below.

Please note that due to way AMP's scroll event hooks are setup, our Scroll Depth feature is currently not available on AMP implementations.



This is the SimpleReach-assigned Publisher ID (PID) that you should have received by email. Your PID is a 24-character alphanumeric string that looks similar to: 4fc608fea782f333ea0000fb. If you don't have your PID yet, send us an email and we'll make sure you have one.

In your final code, your PID will look something like this:



Content publish date in UTC or any ISO8601 date. The date value must be JavaScript parsable.

"published_at": "2015-01-01 00:00:00"

One way of checking this is to open up a JavaScript console in a browser and check the date:

var publishedDate = "2015-01-01 00:00:00"
new Date(Date.parse(publishedDate));

If the console returns the content piece's publication date, then the date is parsable by JavaScript.


An array containing the content piece's author or authors. If not filled out, this field will default to an empty array.

Example of single author:

"authors": ["Alexis Krantz"]

Example of multiple authors:

"authors": ["Alexis Krantz", "Joe Smith", "Kent Brockman"]


An array that includes the content piece channel or channels. Channels typically represent sub-sites of your main site, and are represented as “categories” in our tool. If not filled out, this field will default to an empty array.

"channels": ["health", "beauty"]


An array containing the content piece's tag or tags, such as those that might appear at the bottom of the content piece to describe its content in more detail. If not filled out, this field will default to an empty array.

"tags": ["content analytics", "content marketing", "publishers"]



The title of the content piece. If not filled out, this will default to the Google AMP configured title.

"title": "How To Use StumbleUpon As A Secret Weapon"


<amp-analytics type="simplereach">
  <script type="application/json">
        "vars": {
          "pid": "000000000000000000000000",
          "title": "Super Bowl Predictions",
          "authors": ["john smith", "jane doe"],
          "categories": ["sports", "football"],
          "tags": ["big-game", "nfl"],
          "published_at": "2015-01-01 00:00:00"