Embed guide

Embed a YeetForm in Shopify

Shopify's theme editor lets you drop raw HTML and script into any page through a Custom Liquid section, which is enough to run YeetForm's embed script without installing an app from the Shopify App Store. Use it for a contact form, a pre-order waitlist, a sizing quiz, or a returns request page — anywhere a store needs to collect structured answers instead of an email.

Steps

1

Add a Custom Liquid section

In Shopify Admin, go to Online Store > Themes > Customize, open the page where the form belongs, click Add section (or Add block, depending on the template), and choose Custom Liquid.

2

Paste the snippet

Paste the code below into the Liquid code box. The {{ section.id }} part keeps the container's id unique if you ever add the section twice on one page.

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

Save and preview

Click Save, then open the page on your storefront (not just the theme editor preview) to confirm the form loads and resizes correctly.

Tips

  • The embed auto-resizes to the form's content via a postMessage listener, so you won't need to guess a fixed height for the section.
  • Embedded forms render without YeetForm's own header, so they read as a native part of your Shopify page rather than an outside widget.
  • Add a hidden field to capture context automatically — pass it as a query param on the page URL (?utm_source=... or ?field_id=value) for campaign or product-page tracking.

Build your form with AI in seconds

Free plan includes AI generation, logic and embedding.

Build your form with AI in seconds

FAQ

Do I need a Shopify app to embed a YeetForm form?+
No. Custom Liquid sections are built into every Shopify theme editor, so you don't need to install anything from the Shopify App Store.
Does Custom Liquid work on Shopify's Basic plan?+
Yes. Custom Liquid sections are available on every Shopify plan, including Basic — it's a theme editor feature, not a plan-gated one.
Can I collect Shopify order numbers or customer data in the form?+
You can add a text field for an order number and ask customers to fill it in manually. YeetForm doesn't currently pull live Shopify order or customer data automatically.
Will the form match my Shopify theme's fonts and colors?+
You can set the form's accent color, font and corner radius in YeetForm's theme editor to get it close; it renders in its own scope, so it won't inherit your Shopify theme's CSS automatically.