---
title: "AMP Iframe"
slug: "implementation-with-amp-iframe"
updated: 2024-05-10T04:26:46Z
published: 2024-05-10T04:26:46Z
canonical: "docs.mapp.com/implementation-with-amp-iframe"
---
> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mapp.com/llms.txt
> Use this file to discover all available pages before exploring further.
# AMP Iframe
AMP allows only one iframe per page, which is used for analysis and tracking purposes. To conserve resources, these iframes are removed from the DOM 5 seconds after loading, which should be enough time to perform the required operations.
You can find further information about "amp-iframe" at this link: [amp-iframe](https://github.com/ampproject/amphtml/blob/master/extensions/amp-iframe/amp-iframe.md#-amp-iframe).
> [!CAUTION]
> The AMP framework does not allow iframes from the same subdomain where the AMP page itself exists. Due to this restriction, your iframe page must be hosted on a separate subdomain.
>
> **Example**
>
> For example, if your AMP framework is hosted on **amp.example.com**, make sure you host your iframe page on a separate subdomain such as **ampmetrics.example.com** or similar.
1. Add the following code to your AMP pages.
```xml