Back to Amphtml

My article title

examples/amp-geo.amp.html

latest753 B
Original Source

My article title

The amp-geo config on this page is:

<amp-geo layout="nodisplay">
      <script type="application/json">
        {
          "ISOCountryGroups": {
            "nafta": ["ca", "mx", "us", "unknown"],
            "waldo": ["unknown"],
            "anz": ["au", "nz"],
            "usSubdivisions": ["us-ca", "us-ny"]
          }
        }
      </script>
    </amp-geo>

This means that if your country is "unknown" you will appear in the "nafta" and "unknown" groups. To change the country for testing append #amp-geo=<code> to the url and reload the page (eg #amp-geo=nz, #amp-geo=us us-ny)

Where am I?

There is an amp-pixel variable substitution example here

There is an amp-analytics variable substitution example here