Embed guide

Embed a YeetForm in Ghost

Ghost's editor includes an HTML card that runs script tags on the published post or page, so a YeetForm form drops straight into your newsletter signup flow, a reader survey, or a paid-content application form. It works identically on self-hosted Ghost and Ghost(Pro), since the HTML card is a core editor feature, not a theme or hosting add-on.

Steps

1

Add an HTML card

In the Ghost editor, type /html and press Enter, or click the + button on a new line and choose HTML from the card menu.

2

Paste the snippet

Paste the code below into the card. It loads the YeetForm script and renders your form with automatic resizing.

<script src="https://yeetform.io/sdk.js"></script>
<div id="my-form"></div>
<script>
  YeetForm.embed("your-form-slug", "#my-form");
</script>
3

Preview and publish

Use Ghost's preview to check the form appears correctly, then publish or update the post — members-only posts work the same way as public ones.

Tips

  • The form auto-resizes via a postMessage listener, so there's no need to guess a fixed height for the HTML card.
  • Embedded forms render without YeetForm's own header, so they read as part of your Ghost post rather than an embedded widget.
  • Add a hidden field and prefill it from the post URL (?utm_source=... or ?field_id=value) to see which newsletter issue or post drove a submission.

Build your form with AI in seconds

Free plan includes AI generation, logic and embedding.

Build your form with AI in seconds

FAQ

Does the HTML card work on Ghost(Pro) as well as self-hosted Ghost?+
Yes. The HTML card is part of Ghost's editor itself, available on every Ghost(Pro) plan and every self-hosted Ghost install.
Can I embed a form inside a members-only or paid post?+
Yes, the HTML card works the same regardless of the post's access tier — the form loads for whichever readers can see that content.
Will the form show up correctly in Ghost's newsletter email version?+
No. Email clients strip scripts and iframes for security, so an embedded form won't render inside the emailed newsletter — only on the published web post. Link to the post from the email instead.
Is embedding available on YeetForm's free plan?+
Yes, embedding works on every YeetForm plan. Free-plan forms show a small 'Powered by YeetForm' footer, removed on paid plans.