Skip to content

Embed a form on your website

Add the form inside a page, make it fill the browser, or open it from a button. Copy the generated snippet from Share and paste it into your site.

Copy your embed code

  1. Step 1

    Open Share

    Publish your form, then select Share in the form builder.
  2. Step 2

    Choose Embed

    Select Inline, Full page, or Popup.
  3. Step 3

    Copy the code

    Select Copy.
  4. Step 4

    Add it to your site

    Paste the snippet into an HTML or custom-code area and publish the page.

Use the generated snippet

The examples below use a sample URL. For a live form, copy the snippet from Share so the URL, title and selected mode are exact.

Understand the snippet

Each snippet contains one target element and the Reuily loader script. Keep both parts.

data-reuily-url
Div and popup snippets. The published form URL from Share.
data-reuily-title
Div and popup snippets. The form's accessible title. The iframe snippet uses its own title attribute.
data-reuily-frame
Marks the inline iframe for the loader, which gives it the form's height on every page. Without the script it still works at its own height.
data-reuily-form
Marks a div as an inline or full-page embed container. Older inline snippets use it and keep working.
data-reuily-mode
Set to full-page for a viewport embed. Omit it for Inline.
data-reuily-width
Older div snippets only. Caps the width in pixels. New snippets fill the section they are pasted into.
data-reuily-height
Older div snippets only. The height the form starts at before it takes its own.
data-reuily-auto-height
Optional. Inline only. Set to false to keep data-reuily-height as a fixed height, with the form scrolling inside it.
data-reuily-popup
Marks a button as a popup trigger.
data-reuily-pixel-events
Optional. Set to true so your page's Meta, Google and TikTok pixels record a Lead when someone submits. On a lead form only hot and warm leads count, and a repeat entry never does.
embed.js
Required. Mounts iframe containers, opens popup dialogs, and detects Reuily embeds added later.

Inline embed

Use Inline to place the form inside an existing page. It fills the column it sits in, like your own text.

Inline HTML

HTML

<iframe  data-reuily-frame  src="https://form.reuily.com/Ab3dEf7h?embed=1&embed_fit=1"  title="Contact form"  loading="lazy"  allow="camera; microphone; geolocation; clipboard-write"  style="display:block;width:100%;height:700px;border:0;margin:0 auto"></iframe><script async src="https://form.reuily.com/embed.js"></script>
  • Place the snippet where the form should appear in the page layout.
  • It takes the width of the section you paste it into. For a narrower form, use a narrower section or column.
  • The form takes its own height on each page, so your page never shows a scrollbar inside it or empty space below it.
  • The form sits centred in its column.
  • If your site removes scripts, the form still works: it keeps the snippet's height and scrolls inside.
  • Keep the script tag. It gives the form its own height on every page and passes your page's campaign tags into it.

Full-page embed

Use Full page on a dedicated URL. The loader fixes the form to the full browser viewport.

Full-page HTML

HTML

<div  data-reuily-form  data-reuily-mode="full-page"  data-reuily-url="https://form.reuily.com/Ab3dEf7h"  data-reuily-title="Contact form"></div><script async src="https://form.reuily.com/embed.js"></script>

Use this on a dedicated page without another header, navigation bar, or content that visitors need to access while completing the form.

React and Next.js

Render the same data attributes in JSX. Load embed.js after the page becomes interactive.

Next.js component

TSX

import Script from "next/script"; export default function ContactForm() {  return (    <>      <div        data-reuily-form=""        data-reuily-url="https://form.reuily.com/Ab3dEf7h"        data-reuily-title="Contact form"      />      <Script src="https://form.reuily.com/embed.js" strategy="afterInteractive" />    </>  );}

In another React framework, load the script once from your application shell. Render the configured div wherever the form should appear.

Website builders

Add an Embed, Custom HTML, or Code block. Paste the complete generated snippet without changing its data attributes.

Webflow and Framer

Add an Embed or Code component. Paste the snippet, publish the site, then test the form.

WordPress

Use a Custom HTML block. Confirm that your WordPress plan and security plugins allow script tags. If your plan removes scripts, the form still shows at a fixed height, without auto height or lead tracking.

Wix and other HTML boxes

The box keeps the height you give it. Make it tall enough for your longest page; the form fits inside and scrolls.

Shopify

Add the snippet to a Custom Liquid section or the theme template where the form should appear.

Other builders

Use the custom-code element. If the builder removes script tags, check its plan and security settings.

See where people come from

Every response saves where people came from. An embedded form picks this up from your page's link on its own.

When someone reaches your page from an ad, a tracked link or a referral link, the form saves where they came from, the post or campaign, who referred them and the ad click with their response. To pass along something else from your page's link, like a partner code, list it in data-reuily-params and add it under Share, Tracking, then “Track something else”. To give every response from this embed a fixed value, use data-reuily-hidden.

Inline HTML with tracking

HTML

<iframe  data-reuily-frame  data-reuily-params="partner"  data-reuily-hidden="page=pricing"  src="https://form.reuily.com/Ab3dEf7h?embed=1&embed_fit=1"  title="Contact form"  loading="lazy"  style="display:block;width:100%;height:700px;border:0;margin:0 auto"></iframe><script async src="https://form.reuily.com/embed.js"></script>

People filling in the form never see these details. You can turn this off for a form in Share, then Tracking. These need the script tag. Without it the form still works, but can't see your page's tags or tell your page about leads.

Track leads on your page

An embedded form tells your page when someone starts and submits it, so your own pixel, tag manager or code can count the lead.

It shares which form and the lead or quiz result, never anyone's answers. Reuily never loads its own ad pixels inside an embed. These need the script tag. Without it the form still works, but can't see your page's tags or tell your page about leads.

reuily:started
Someone answered the first question. detail: { formId }. Also pushed to window.dataLayer as reuily_form_started.
reuily:submitted
The answers are saved. detail: { formId, leadLevel, quizPassed, quizScorePercent, countsAsLead }. countsAsLead is false for a repeat entry, and on a lead form for anyone who isn't a hot or warm lead. Also pushed to window.dataLayer as reuily_form_submitted, with reuily_form_id, reuily_lead_level, reuily_quiz_passed, reuily_quiz_score_percent and reuily_counts_as_lead.
reuily:resize
An inline form changed its height. detail: { height }, in pixels.
reuily:redirect
The ending sends people to a website. detail: { formId, url }. The whole page goes there unless a listener calls event.preventDefault().

Each event starts on the embed (or the popup button) and bubbles up to window.

Listen for a submission

HTML

<script>  window.addEventListener("reuily:submitted", function (event) {    // event.detail: { formId, leadLevel, quizPassed, quizScorePercent, countsAsLead }    if (event.detail.leadLevel === "hot") {      // Show your booking widget, start a chat, and so on.    }  });</script>

To have your page's Meta, Google and TikTok pixels record a Lead without writing code, turn on “Fire my page's pixel on submit” in Share, then Embed. It adds data-reuily-pixel-events, which calls fbq("track", "Lead"), gtag("event", "generate_lead") and ttq.track("Lead") when they're on your page, plus QualifiedLead, qualify_lead and ApplicationApproval for hot leads. On a lead form only hot and warm leads record one, and a repeat entry never does. For pixels on the form's own link, see Ad pixels.

Inline HTML with your page's pixel

HTML

<iframe  data-reuily-frame  data-reuily-pixel-events="true"  src="https://form.reuily.com/Ab3dEf7h?embed=1&embed_fit=1"  title="Contact form"  loading="lazy"  style="display:block;width:100%;height:700px;border:0;margin:0 auto"></iframe><script async src="https://form.reuily.com/embed.js"></script>

Count each lead once

If your tag manager already listens for reuily_form_submitted, leave the pixel switch off so leads aren't counted twice.

When an ending sends people to a website (Pro and up), the whole page goes there, not just the form. Only http and https addresses are followed.

Troubleshooting

Check these items if the form does not appear or differs from the Share preview.

  • Confirm the form is published and its public link opens normally.
  • Use HTTPS on the published website and keep the embed.js script URL unchanged.
  • Check whether your builder or Content Security Policy is blocking external scripts or frames.
  • Remove duplicate custom CSS that changes the embed container or iframe dimensions.
  • Form sits to one side, or has empty space under it? It was pasted as your own iframe. Use the code from Share instead.
  • Publish or deploy the host page before testing. Some builders do not run scripts in editor previews.
  • Open the browser console and check for blocked-script, frame, or network errors.

Embedding more than one form

You may keep one Reuily script tag on the page. The loader detects every Reuily embed container and popup button, including elements added later.