How to embed a product demo on your website, step by step for each builder
Publish the demo so it has a share link, then paste one of two snippets: a one-line script where your builder runs scripts, or a plain iframe where it doesn't. Below are the steps for plain HTML, Webflow, Framer, WordPress and Notion, checked against each builder's own help pages.
The steps are short. Most problems come from choosing the wrong snippet for the builder, or from a share setting you forgot about. The examples use Programmable's embed, but the builder steps work the same for any demo tool that gives you a script or an iframe.
This page is about getting the demo onto the page. For keeping it fast, see animated demos and Core Web Vitals, which covers LCP, layout shift and how to measure the cost on your own page.
Choose what to embed
| Option | What you paste | Use it when |
|---|---|---|
| One-line script | A <script> tag | Your builder runs scripts. It loads when scrolled near, matches the page's theme and language, and supports scroll to play |
| Plain iframe | An <iframe> tag | Scripts aren't allowed, or you want nothing to run on your page |
| Share link | Just the URL | Tools that turn a pasted link into an embed, such as Notion |
| MP4 you host | A <video> tag | You want no third party at all, and can live without analytics |
| Interactive demo | Either snippet, with Click through steps | Visitors should step through the screens at their own pace |
Get the snippet
- Open the demo and choose Share, then Create share link. The embed only exists once the demo is published.
- Set Behaviour: Loop, Play when visible, Scroll to play, Click through steps or Play on hover. Scroll to play needs the script.
- Set Theme and Language if you need them. Matching the page's theme or language also needs the script.
- Copy the One-line script or the Plain iframe.
The script looks like <script src="https://programmable.digital/embed.js" data-share="TOKEN" async></script>, with your settings added as data-mode, data-theme and data-lang. It inserts the demo where the tag sits. The iframe carries loading="lazy", a sandbox attribute and an inline aspect-ratio, so the space is reserved before it loads. Don't remove those when you paste.
Plain HTML
Paste the script where the demo should appear, inside the <body>. Nothing goes in the <head>. Give it a container if you want to control the width:
- Wrap it in a
<div style="max-width:960px;margin:0 auto">, with the script inside. - If your film isn't 16:10, give that wrapper an
aspect-ratiotoo. The script starts with a 16:10 box and switches to the film's real shape when its details arrive, so a matching wrapper stops the page moving.
For the iframe, paste it as it is. It fills the width of its parent and keeps its shape. To place two demos on one page, paste two scripts; each one mounts its own demo.
Webflow
Webflow's help page didn't load for our reader on 7 November 2026, so these steps come from Webflow's help article on custom code embeds as shown in search results. Check the wording there before you rely on it. Webflow calls the element a Code Embed:
- Copy the one-line script.
- Open the Add panel and drag a Code Embed element onto the canvas where the demo should go.
- Paste the script into the code editor and save.
- Publish, then check the published or staging site.
Webflow caps a Code Embed at 50,000 characters, which a one-line script is far below. Scripts don't always run inside the Designer canvas, so an empty box there isn't a fault: check the published site before you change anything. If your Code Embed has no explicit size, the demo fills the width of its parent, which is usually what you want.
Framer
Framer's help article gives two routes, both through the Embed component found by searching for Embed in the Insert menu:
- Drag the Embed component onto the canvas.
- Either enter the share link as its URL, or switch it to HTML and paste the plain iframe snippet.
- Publish. Programmable's Share panel suggests setting the Embed's width to Fill and its height to Fit content, so the iframe keeps its shape.
We suggest the HTML route with the iframe. It keeps your Behaviour and Theme settings, which a bare URL doesn't carry. Framer's article says a script can go in the HTML section too, but that some integrations need extra wrapping code to work there, so the iframe is the dependable choice. The same article warns that some sites block embedding with HTTP headers; Programmable's share pages allow it.
WordPress
In the block editor, use the Custom HTML block. WordPress's documentation gives the steps:
- Click the Block Inserter, or type
/htmlin a new paragraph and press Enter. - Choose Edit HTML, paste the one-line script, and check the preview beside the code.
- Press Update, then update or publish the page.
Who you are matters. Since WordPress 7.0, the same page says, users without the unfiltered_html capability, such as Contributors, have disallowed tags like <script> and <iframe> stripped when the post is saved. If your snippet disappears on save, ask an administrator to add it, or to give you a role that can.
There's a second route. Programmable's share pages publish an oEmbed address, the standard way a site tells others how to embed it. WordPress can discover that from sites outside its built-in list of providers. When it does, WordPress filters the result: it keeps only the iframe and sandboxes it with allow-scripts. The demo plays, but a call-to-action button that opens your site in a new tab may not work. Pasting the share link into an Embed block is worth a try for a blog post; for a landing page, use Custom HTML so you control the snippet.
Notion
Notion doesn't run scripts or accept iframe code. You paste the link. Notion's help page on embeds gives the steps:
- Hover over a new line, click the + that appears, and choose Embed.
- Paste the share link. It should start with
https, not<iframe. - Drag the bars on the embed's sides to resize it.
Notion says it embeds content from many sites through Iframely, a third-party service, and that a Failed to Load error means the site is blocking it. We haven't tested every Notion workspace and app. If the embed won't load, paste the link and choose Paste as bookmark, which shows the link's preview image. Notion also notes that embeds needing a login to an external site won't work in its desktop or mobile apps, so a password-protected link is a poor fit there.
Poster, lazy loading and reduced motion
The details are in the Core Web Vitals guide. In short, for the embed as it works today:
- Lazy loading is built in. The script starts the demo when its box comes within 300 pixels of the screen, and the iframe uses
loading="lazy". In a hero at the top of the page, removeloading="lazy"from the iframe, or show an image first. - Bring your own poster for a hero. Export a PNG still from Export and put it in your HTML as an ordinary image, then load the embed in its place. The script adds its own poster only for website components.
- Reduced motion is respected. When a visitor's system asks for less motion, embeds hold a still frame, and website components show a play button instead of starting.
- Offscreen embeds pause, so a demo the visitor has scrolled past stops using the processor.
Share settings that change what visitors see
The embed shows whatever the share link allows, so check these in the Share panel before you blame the builder:
| Setting | What happens in the embed |
|---|---|
| Password | The embed shows the poster with a padlock and "Password protected · Open to view", linking to the page. The demo doesn't play inline |
| Expiry date | After it, the link and every embed stop working |
| Revoke link | Stops the link and every embed at once. Publishing again makes a new link, so you'll need to paste a new snippet |
| Approvals | In a team workspace with approvals on, embeds show only an approved version |
| Trial | Embeds of trial shares carry a small "Made with Programmable" badge. Paid plans have none |
Views, plays and watch-through from both kinds of embed appear in Publish › Analytics. Add ?utm_source= and utm_campaign= to a shared link to see where its views come from; see analytics.
Check it on the live page
- Open the published page, not the editor, in a private window so you see what a visitor sees.
- Resize to phone width. The demo should shrink with the page and keep its shape.
- Turn on reduced motion in your system settings and reload. The demo should hold still.
- Scroll past it and back. It should pause and resume.
- Press any call-to-action button in the demo and check it opens the right page.
- Check analytics the next day to confirm views are arriving from the page.
When to skip the embed
If your page is mostly read on slow connections, a still image linking to the share page costs less than any player. If your legal or security team won't allow third-party content, export the MP4 and host it yourself, and lose the analytics. And if the demo needs real footage or runs longer than a minute, use a video host instead, because Programmable's films are animated and stop at 60 seconds. For help deciding between formats, see demo video or interactive demo. Shopify and Squarespace steps are in the site builder guides.
Common questions
Should I use the script or the iframe?
Use the script wherever your builder runs scripts. It loads only when the demo is near the screen, can follow your page's theme and language, and is the only way to use scroll to play. Use the iframe in Framer, in locked-down CMSs and anywhere scripts are stripped.
Will the embed slow my page down?
It loads asynchronously and waits until the demo is near the screen, but any embed adds some work. Measure your own page with and without it, as the Core Web Vitals guide explains.
If I edit the demo, do I need to paste a new snippet?
No. Embeds show the latest published version of the same link. You only need a new snippet if you revoke the link and publish again.
Can I embed a demo in an email?
Email clients don't run scripts or iframes. Put a still image or a short GIF in the email and link it to the share page.