What is an iFrame?
An iFrame is a component of an HTML element that allows embedding interactive documents (images, videos, texts, etc.) within a page. By using iFrames, you can basically integrate content from other sources anywhere within your page without having to include them in your website layout's structure.
Does Zoning Analysis support iFrames?
Contentsquare supports iFrames that are owned by you in the Zoning Analysis, but not Third-party iFrames (ex: Klarna payment fields). However, data from Third-party iFrames can be captured in the following cases:
- the tracking-tag is present in both top-window and iFrame (use the Contentsquare Tracking Assistant to check your main tag is loaded)
- iFrameTracking feature flag is enabled (talk to your CSM)
- each domain (top-window and iFrame) is in the project domains list configuration, learn how to add the CS tag using these instructions.
If your iFrames are NOT supported, your snapshot will display a greyed-out area with the text "iFrame: this zone can't be collected." Tooltips and text will indicate untracked iFrames in your snapshot, Live zoning or CS Live.
Why does it work for my iFrames but not Third-party iFrames?
- With iFrames owned by you, the content is hosted on the same domain, or a subdomain, as the page in which it is embedded. You are the owner of your iFrames.
- With third-party iFrames, you are generally not the owner of the domain. (e.g. when you open the source of the iFrame in your browser, the content loads on the webpage, e.g. a YouTube video).
Is there any prerequisite to get the iFrames displayed on zonings?
- The tag must be implemented on the iFrame origin page so Contentsquare can retrieve data. If the tag is self-hosted, it has to be updated. (Use the Contentsquare Tracking Assistant to check your main tag is loaded)
-
CS Live extension must be installed as we use it for the serialization to collect iFrames data.
Note: If you don't have CS Live installed yet, please contact your CSM. - If several pages are contained in the same iFrames, please contact your CSM to enable the sending of artificial pageviews.
- iFrame support in Zoning Analysis is activated on demand. If you are interested in activating it, talk to your CSM.
Exposure metrics: We cannot fetch exposure metrics for zones inside iFrames yet. Our team is exploring solutions to solve this.