Easy3 minutes

Embed an AI form on your Wix site with Custom Element

Wix offers two paths for embedding third-party scripts: Custom Element (the recommended method, native to Wix Studio and Editor X) and the HTML iFrame embed (works on classic Wix). Sift works with both.

Before you start: grab your Form ID and public API key from your dashboard. You will replace YOUR_FORM_ID and YOUR_PUBLIC_KEY in the snippets below.

Install Sift on Wix

  1. 1

    Open the Wix Editor

    Log into Wix and open the site editor for the project where you want the widget.

  2. 2

    Add an Embed component

    Click the Add Elements panel (+ icon), choose Embed Code, and select either Embed HTML or Custom Element. For most users, Embed HTML is the simplest.

  3. 3

    Paste the snippet and publish

    In the embed dialog, paste the Sift script, click Update, then publish the site. The widget appears at the position you placed the embed component.

html
<!-- Wix HTML iFrame embed -->
<script
  src="https://siftforms.com/widget/v1.js"
  data-schema-id="YOUR_FORM_ID"
  data-api-key="YOUR_PUBLIC_KEY"
  async
></script>

Alternative install methods

Custom Element (recommended for Wix Studio)

In Wix Studio, use Add Elements → Embed → Custom Element. Set the tag name to "div", point the source to siftforms.com/widget/v1.js, and configure data attributes via the panel.

Velo / Corvid scripting

If you use Wix Velo, you can dynamically inject the Sift script via $w.onReady() and call the widget API programmatically.

Tips for the best results

  • The HTML iFrame method wraps the widget in an iframe — fine for inline use, but resize handles may be needed
  • Custom Element is preferred in Wix Studio for cleaner integration
  • Wix has strict CSP rules — Sift's script is whitelisted, but custom code from other sources may not be
  • For best mobile experience, set the embed component width to 100% in the Wix editor

Troubleshooting

Widget shows as a small iframe with scrollbars

Set the embed component height to 'auto' if available, or manually drag the height to fit the widget. The widget content adjusts to its container.

Script does not run inside HTML Embed

Wix wraps HTML embeds in an iframe sandbox. The Sift script is whitelisted and works correctly. If it does not load, try the Custom Element approach instead.

Ready to embed Sift on Wix?

Create your first form in your dashboard, then come back and paste the snippet above.