---
title: "Iframe Forms Break Pixel Tracking: 3 Fixes"
url: https://ads.expert/insights/iframe-forms-pixel-tracking
author: Nilay Jayswal (https://ads.expert/nilay-jayswal)
publisher: ads.expert
published: 2026-10-17
updated: 2026-11-05
---

# Your form lives in an iframe. Your pixel can't see it.

Embed a Typeform or Jotform in your landing page and the form runs on the provider's domain. The pixel on your page never sees the submit. It can test fine on its own and break once embedded. Three ways to fix it.

When a form from a tool like Typeform or Jotform is embedded in your landing page as an iframe, the Google tag, Tag Manager container or Meta pixel on your page never sees the submit. There are three fixes: redirect to a thank-you page on your own domain, listen for the form's submit message and push it to your data layer, or use the form provider's own pixel integration and accept its limits.

The cause is that the form runs on the provider's domain, not yours. Browsers give a page very limited access to a cross-origin iframe, and MDN documents postMessage as the way the two communicate.

## What it looks like when it breaks

We hit this on a client's landing page. They wanted to test a progressive form without waiting on their dev team, so we built it in Jotform and connected the Meta pixel inside the form. Tested on its own, the form sent events to Meta. Embedded in an Instapage landing page as an iframe, the pixel event stopped arriving. The fix was to redirect people to a thank-you page after submitting and fire the pixel when that page loaded.

> Your pixel watches your page. The form lives on someone else's.

## Why your tags can't see inside the frame

MDN's documentation of the same-origin policy says that when two documents don't share an origin, references between a page and its iframe give only very limited access, and that cross-origin documents should communicate with window.postMessage. Your Tag Manager container lives on your page. Google's own docs describe the data layer as one object per page that only persists while the visitor stays on that page. A submit event that happens inside the iframe never reaches it unless something passes it across.

## Three ways to fix it

- **Redirect to a thank-you page on your domain.** Set the form to send people to your own URL after submitting, and fire the conversion on that page load. On Typeform, redirect to a URL is available on Plus plans and above and must use HTTPS. Keep the thank-you page out of search with a noindex tag, or anyone who lands on it from Google will count as a conversion.
- **Listen for the submit on your page.** Some embeds report the submit to the host page. Typeform's embed SDK has an onSubmit callback that runs in your page's JavaScript and passes the form and response IDs. Push a dataLayer event from it and fire your tags on a Tag Manager custom event trigger. If you write your own postMessage listener, check the message's origin first.
- **Use the provider's native pixel integration, with eyes open.** Typeform's Meta pixel integration sends custom events named TypeformFirstInteraction and TypeformSubmit, so you need a custom conversion to optimize to them. Typeform also says the integration isn't compatible with the Conversions API.

Our default is the redirect. It's the least fragile, it keeps the conversion on your domain and in your own Tag Manager container, and it works with any form tool that can redirect.

Whichever you pick, test the real embedded flow, not the form on its own. Use Meta's Test Events tool as described in [is your Meta pixel actually firing](https://ads.expert/insights/verify-meta-pixel-test-events), and expect some gap between platforms anyway, for the reasons in [why your conversion numbers don't match](https://ads.expert/insights/conversion-numbers-dont-match).

### The takeaways

- An embedded third-party form runs on another origin. Tags on your page can't see its submit.
- A form that tracks fine on its own can stop tracking once embedded. Test the embedded version.
- Simplest fix: redirect to a noindexed thank-you page on your domain and fire the conversion there.
- Or catch the provider's submit callback on your page and push it to the data layer.
- Native form integrations work, but often send custom events and skip the Conversions API.

## Common questions

### Why doesn't my pixel fire when someone submits an embedded form?

An embedded form from a tool like Typeform or Jotform usually loads in an iframe on the provider's domain. Browsers give a page very limited access to a cross-origin iframe, and MDN documents window.postMessage as the way such documents communicate. The Google tag, Tag Manager container or Meta pixel on your page can't see the submit inside the frame unless the form passes it across.

### What is the easiest way to track an iframe form submission?

Redirect people to a thank-you page on your own domain after they submit, and fire the conversion when that page loads. On Typeform, redirect to a URL is available on Plus plans and above and the URL must use HTTPS. Add a noindex tag to the thank-you page so visitors from search don't trigger false conversions.

### Can Google Tag Manager track a form inside an iframe?

Not directly from the parent page's container when the iframe is on another domain. The usual fix is to have the form report the submit to your page, for example through Typeform's onSubmit embed callback or a postMessage listener that checks the message origin, then push an event with dataLayer.push and fire your tags on a custom event trigger.

### Should I use Typeform's built-in Meta pixel integration?

It works, with limits. Typeform says its integration tracks page views and sends custom events called TypeformFirstInteraction and TypeformSubmit, so you need a custom conversion to optimize to a submission. Typeform also says the integration isn't compatible with Meta's Conversions API. A redirect to your own thank-you page keeps the conversion on your domain instead.

### How do I check the fix works?

Test the real embedded flow on the live landing page, not the form on its own. Submit a test entry and confirm the event arrives in Meta's Test Events tool in Events Manager, or in Tag Manager's preview mode for Google tags.

 **Sourced from the field, checked against the docs.** The Jotform and Instapage example is our own client work, anonymized, and the pattern also came up on mentoring calls. Browser behavior is from MDN's [Same-origin policy](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy) page. Data layer and custom event behavior are from Google's [The data layer](https://developers.google.com/tag-platform/tag-manager/datalayer) and [Custom event trigger](https://support.google.com/tagmanager/answer/7679219) documentation. Typeform details are from its [End Screens and redirects](https://help.typeform.com/hc/en-us/articles/360051791392-End-Screens-and-redirects) and [Facebook pixel integration FAQs](https://help.typeform.com/hc/en-us/articles/10583590511124-Facebook-pixel-integration-Troubleshooting-limitations-and-other-FAQs) help articles and its [embed callbacks](https://www.typeform.com/developers/embed/callbacks/) developer docs. No client-identifying data used.

### Related reading

- Guide[Paid media attribution](https://ads.expert/guides/paid-media-attribution)
- Insight[Your Meta pixel is installed. Is it actually firing?](https://ads.expert/insights/verify-meta-pixel-test-events)
- Insight[Google, Meta, and your CRM report three different conversion numbers.](https://ads.expert/insights/conversion-numbers-dont-match)
- Guide[Conversion goals and tracking for Smart Bidding](https://ads.expert/guides/conversion-tracking-smart-bidding)
- Term[Google Tag Manager](https://ads.expert/glossary/google-tag-manager)
- Service[Meta Ads for B2B and D2C](https://ads.expert/services/meta-ads)

---
Plain-markdown copy of https://ads.expert/insights/iframe-forms-pixel-tracking for AI tools and readers. The HTML page is the canonical version.
