- either from the iframe where it can access the form data, but only if the source of the iframe comes from the same domain as the parent,
- either from the page where the iframe is inserted.
This second solution is the recommended solution. You will simply need to make sure that the parent page can access the iframe form data (same origin policy).
What is an iframe?
An iFrame (short for "inline frame") is an HTML tag ( <iframe> ) that allows you to embed another web page inside the current page.
In other words, an iFrame allows you to display the content of another URL in a specific section of a web page.
In which cases a Eulerian Client may need to track events in an iframe context?
Built-in Widgets:
Widgets like interactive maps, contact forms, live chats, social media integrations, etc. are often embedded via iFrames, especially when the service is provided by a specialized provider.
Partner Content:
On some sites, content from partners or affiliates may be displayed via iFrames.
Embeddable Web Applications:
Some web applications are designed to be embedded into other sites via iFrames. For example, a travel booking application embedded into a tourism site.