Iframe tracking demo

Send iframe form data to the parent data layer.

We embed a form in an iframe. The iframe hashes the email address and posts a message to this page, which pushes a sanitised event into window.dataLayer.

01 · Embedded iframe

Submit the form below. The iframe sends a postMessage payload to this page, which pushes iframe_form_submit to window.dataLayer.