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 site or another site).
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 which lets you embed a part or the whole content of a page. In absolute, except websites forbidding it, any web page can be embedded in an iframe.
Below is an exemple with the Widget demos:
When a visitor clicks in an iFrame they are actually clicking in another web page. And we cannot exactly where (by default). But we can track how clicks happen inside the iframe element because the iframe element is still on our website.
To configure the widget:
- Give it a name (for the Goals setup step and the Reporting)
- Select the <iframe> element you would like to track (use the Select parent or Select children option to select the right element if needed)
If you want to add more than one goal, add them into the same tracking widget (by clicking on the "+" button) instead of adding another tracking widget. If you added one by mistake or if you want to remove one inside of a tracking widget, just click on the red cross to delete it.
If you want to: edit, duplicate, rename, delete such a widget, please check the Widget Frequently Asked Questions article.
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 New reporting - Configuring goals article.
If you want to track clicks in several iframes on your page, you will have 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).