Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Embedded form not loading (HubSpot, Typeform, Jotform): fix

CNV-353High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Tools like HubSpot, Typeform and Jotform let you place a form on your page with a snippet. The snippet either loads a JavaScript file that builds the form on your page, or adds an iframe, which is a window onto another website's page. If that script or iframe fails, the area stays empty, shows a spinner forever, or shows a browser error.

Why it costs you leads or sales

The form is usually the last step before a lead. If it is missing, every visitor you paid for hits a dead end. Traffic, ad spend and page views look normal, and only the lead count drops. Because the failure is silent, it can run for days.

Where an embed failure cuts the funnel
  1. Ad clickVisitor lands on page
  2. Page loadsContent and layout show
  3. Form embedScript or iframe fails
  4. SubmissionNothing to submit
  5. Lead in CRMNever created

The page loads, but the form never appears, so every later step is lost.

Leads per day before and after the embed brokeExample numbers
Leads per day before and after the embed broke (example)Day 1 (working): 12 leads; Day 2 (working): 11 leads; Day 3 (broken): 0 leads; Day 4 (broken): 0 leads059121100Day 1 (working)Day 2 (working)Day 3 (broken)Day 4 (broken)leads

Example: illustrative numbers for a page with steady traffic. Visits stay the same while leads fall to zero.

How to check if your site has it

Check the embed in a clean browser
  1. Open the page in a private window

    Use a fresh private or incognito window with no extensions. Wait for the page to finish loading and see if the form appears.

  2. Open the browser console

    Press F12 (or Cmd+Option+I on Mac) and open the Console tab. Look for red errors mentioning the form provider, such as js.hsforms.net, embed.typeform.com or jotform.com, or messages like 'Refused to display in a frame' or 'blocked by CSP'.

  3. Check the Network tab

    Reload with the Network tab open and filter by the provider's name. A request in red, or with status 403, 404 or blocked, is your failure.

  4. Test with consent denied and accepted

    If you use a cookie banner, test the page both before and after clicking accept. Some setups only load the form after consent.

  5. Try another browser and a phone

    Safari, mobile browsers and ad blockers behave differently. If it works in one and not another, the cause is blocking, not your code.

What you see and the likely cause
SymptomLikely cause
Blank gap, no errorsScript placed in a spot that never runs, or the container element is missing
Console: blocked by CSP or X-Frame-OptionsYour site's security headers or the provider block the frame
Form appears only after accepting cookiesConsent tool is holding the embed back
Works for you, not for othersCached copy, ad blocker or browser privacy setting
Provider message such as form not foundForm deleted, unpublished or embed ID changed

How to fix it

Fix the cause you found above. Start by getting a fresh embed code from the provider and comparing it with what is on your page.

Fix a form that won't load
  1. Confirm the form is live

    Open the form's direct share link from HubSpot, Typeform or Jotform. If it fails there, the problem is the form (unpublished, deleted, closed or account issue), not your site.

  2. Replace the embed code

    Copy a fresh snippet from the provider and paste it over the old one. IDs and formats change when forms are duplicated or rebuilt.

  3. Allow the provider in your security headers

    If the console mentions Content-Security-Policy, add the provider's domains to script-src and frame-src.

  4. Release the embed from consent blocking

    If your consent tool blocks it, categorise the form as necessary where the law allows, or show a clear 'accept cookies to see the form' message with a link to a direct form URL.

  5. Clear caches

    Purge your site cache, CDN and any script-minify or delay plugins, then retest in a private window.

Platform-specific checks
  1. Use the right block

    Paste the snippet into a Custom HTML block, not a visual or text block that strips script tags. The HubSpot plugin or Typeform block also works.

  2. Exclude the script from optimisation

    In your caching or speed plugin, turn off 'delay JavaScript' and minify/combine for the provider's domain (for example js.hsforms.net), then clear the cache.

Example CSP additions (use only the providers you need)text
script-src 'self' https://js.hsforms.net https://js.hs-scripts.com https://embed.typeform.com;
frame-src 'self' https://forms.hsforms.com https://form.typeform.com https://form.jotform.com;

How to confirm it's fixed

Confirm checklist
  • Form appears in a private window with no extensions
  • No red errors for the provider in the console
  • Form shows on desktop and mobile, in Chrome and Safari
  • Form shows both before and after cookie consent, or a clear fallback is shown
  • A test submission reaches your inbox and CRM
  • Your thank-you page or tracking event fires after the test

How to prevent it happening again

Embeds break when something around them changes: a plugin update, a new cookie banner, a security header, or a form rebuilt in the provider's account. Make form changes part of your release checks.

Prevention habits
  • Retest the form after every theme, plugin or consent tool change
  • Keep a note of which form IDs each page uses
  • Don't delete or unpublish forms without checking where they are embedded
  • Review security header changes with the form providers in mind
  • Run a scheduled check of the real page, not just your own browser

How FunnelGuard handles this

FunnelGuard detects this issue today. A robot visitor opens your page on a schedule and looks for the form's frame (the selector for the iframe or form container). It also watches for failures in the third-party requests the embed depends on. If the frame is missing or those requests fail, the check fails.

A failure is re-checked from a second region before one alert goes out, so a one-off blip does not wake you up. The alert goes to email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause. You can try it on the Free plan (1 site, 2 journeys, daily checks, no card), or start a 3-day trial on any paid plan.

Questions people ask

Why is my HubSpot form not showing on my website?

Common causes are a script blocked by a caching plugin or consent tool, a missing container element, or a form that was unpublished or rebuilt. Check the browser console for errors mentioning hsforms.net, then replace the embed code with a fresh one from HubSpot.

Why is my Typeform embed blank?

A blank Typeform embed usually means the embed script was blocked, the form is closed or unpublished, or the container is hidden or has no height. Open the form's share link directly to confirm it works, then recheck the embed code and your security headers.

Why does my Jotform embed show a blank page?

The iframe may be blocked by your site's Content-Security-Policy, hidden by a cookie banner, or pointing at a form that was deleted. Test the Jotform URL directly, then add form.jotform.com to frame-src if your site uses a CSP.

How do I check if an embedded form is loading?

Open the page in a private window, press F12 and look at the Console and Network tabs for failed requests to the form provider. Also test on mobile and in Safari. For ongoing checks, a scheduled monitor can load the page and look for the form frame.

Can a cookie banner stop an embedded form from loading?

Yes. Many consent tools block third-party scripts and iframes until a visitor accepts, so the form stays blank for anyone who hasn't consented. Categorise the form correctly where allowed, or show a message and a direct link.

Why does my embedded form work for me but not for visitors?

Your browser may have cached the form, or you may be logged in or have no ad blocker. Visitors may use blockers, strict privacy settings or consent denial. Test in a clean private window and on other browsers and devices.

Do ad blockers block embedded forms?

Some do, especially lists that target tracking domains, and they can catch form providers that share scripts with tracking. Offering a direct link to the form as a fallback keeps those visitors from being lost.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: selector frame + third-party failures.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.