# Setup Tracking for AMP Pages

**GoAffPro** provides you with the option to set up tracking for the AMP pages of your store.

To set up tracking for the AMP pages of your store, go to the **Advanced** section of the **Settings** tab in the GoAffPro admin panel.

<figure><img src="/files/laFV2oshdEGnaNEd3P9s" alt=""><figcaption><p>Settings > Advanced</p></figcaption></figure>

Here, go to the AMP Pages tracking section.

![AMP Pages tracking](/files/-MBYHJN6pDR9CH9EZ7sH)

Now, click on **Setup**

![Click on Setup](/files/-MBYHUJr6D9ixYenXZuL)

This will open up the AMP Pages Tracking window.

![AMP Pages Tracking](/files/-MBYHiBLKZTd-EeSWJKI)

&#x20;Next, add the following code to the head of the page.&#x20;

```
<script async custom-element = "amp-analytics" src = "https://cdn.ampproject.org/v0/amp-analytics-0.1.js">
```

![Add the code to the head of the page](/files/-MBYI6SiuZK7kLmJSi-Y)

After this, add the code in Step 2 to the bottom of the body of the page.

![Add the code to the bottom of the body of the page](/files/-MBYIPIyA1vDHGcyz_W5)

{% hint style="info" %}
If you require help regarding setting up the tracking on your AMP pages, you can contact us at <admin@goaffpro.com>
{% endhint %}

{% embed url="<https://www.youtube.com/watch?v=SE0JLClKeJA>" %}
Setup Tracking for AMP Pages
{% endembed %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.goaffpro.com/program-settings/advanced-settings/setup-tracking-for-amp-pages.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
