# Iframe Click Tracking Widget

The Iframe Click Tracking widget is part of the **Tracking** widget category. For more information on the widgets, please refer to [Widgets configuration in the visual editor](/web-experimentation-and-personalization/editors-and-widget/list-of-widgets/widgets-configuration-in-the-visual-editor.md).

## Introduction <a href="#id-01gndd6kdsf4mg5ttbx5q24nwc" id="id-01gndd6kdsf4mg5ttbx5q24nwc"></a>

The Iframe Click Tracking widget enables you to record clicks in an iframe (an HTML element that lets you display content from another web page - the same website or another one).

For example, YouTube videos are displayed in an iframe when you embed them in your website. It is pretty much the same thing for any web app that lets you embed a part of or the full content of a page. Generally speaking, except for websites that forbid it, any web page can be embedded in an iframe.

## Configuration <a href="#id-01gndd6ke80d2p9hp53akn7xkz" id="id-01gndd6ke80d2p9hp53akn7xkz"></a>

<img src="/files/7jNyf3Pjyk8qkhws3pPK" alt="" width="218">

To configure the widget:

1. Give it a name (for the Goals setup step and the Reporting),
2. Select the \<iframe> element you would like to track (use the Select Parent or Select Children option to select the right element if needed),
3. Save.

To use more than one goal, add them to the same tracking widget (by clicking on the "+" button) instead of adding another tracking widget. If you added one by mistake or if you would like to remove one inside of a tracking widget, just click on the red cross to delete it.

In order for your goal(s) to be displayed in your campaign reports, you need to add them as main or secondary goals. For more on the goal configuration step, refer to the [***Goal guide*****.**](/reporting-and-performances/reporting/metrics.md)

If you want to track clicks in several iframes on your page, you will need to add one widget per iframe.

To enable a fair comparison, event tracking widgets are applied to the original version and to the campaign variation(s).


---

# 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.abtasty.com/web-experimentation-and-personalization/editors-and-widget/list-of-widgets/ab-tasty-prebuilt-widgets/iframe-click-tracking-widget.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.
