# AMP tracking

For the following integration to work, you must add the [amp-analytics module](https://amp.dev/documentation/components/amp-analytics) on the page environment.

Here is an example of the AMP tag:

```markup
<amp-analytics type="mediarithmics">
  <script type="application/json">
    {
      "vars": {
        "site_token": <SITE_TOKEN>,
        "event_name": "amp-test-pageview"
      },
      "extraUrlParams": {
        "prop1": "value1",
        "prop2": "value2"
      }
    }
  </script>
</amp-analytics>
```

**Arguments**

| name                | type   | description                                                                                                                                                         |
| ------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| site\_token         | string | **site\_token** is the token of the website (**required**).                                                                                                         |
| event\_name         | string | **event\_name** is the [name of the event](https://developer.mediarithmics.io/user-points/user-activities#user-events-object) (optional, default to '$page\_view'). |
| any custom property | string | All **custom properties** should be added to the extraUrlParams object (prop1, prop2 in the example).                                                               |
