Help / Embed
Embed a product on your website
From a published product to a working 3D view on your page — placement, size, starting variants, copying the code, allowed websites and the poster.
The Embed on website window builds the code that puts a published product on your own web page. You choose how it sits on the page, its shape on a computer and on a phone, and which variants it opens with; then you copy the code and paste it into your page's HTML. The code is the whole integration: no account, key or plugin is needed on your website.
You need a published product. A draft has no code yet: publish it first from Save & publish on the Scene tab.
Where to find it
| Where | What to press |
|---|---|
| Product card | Embed on the card in Products. |
| Product details | Embed on website in the details in Products; the details close and the window opens in their place. |
| Studio | The Scene tab → Save & publish → Embed on website, shown once the product is published: the same settings in a narrow column. |

All three give the same settings and produce the same code for the same choices. In Studio, Frame above the Embed settings still changes the scene frame itself (viewport and snapshots); the shape you pick in Embed changes only the code.

The top line of the window says whether the product is on the storefront. For a draft it says Draft — not published, and the window shows the settings without a preview or code. For a product taken off the storefront the code is still shown — its address does not change, so the same code shows the product again once you bring a version back — but Open viewer is off.
Placement
| Choice | What your visitors get |
|---|---|
| In the page | The 3D view sits in your page where you paste the code, at the full width of that column. |
| Tile + window | Your page shows a tile with the product's poster. A click opens the 3D view in a window over the page; closing the window removes the live 3D view of that window. The tile opens the window every time it is clicked. |


Several embeds on one page are independent: each block and each tile runs its own 3D view, and closing one window does not stop the others.
Tile + window works only if the published product starts On click or When seen (Studio → Scene → Loading screen). With Right away the tile shows the 3D view itself and no window opens. The window does not know the product's start setting, so it states this condition instead of checking it.
The Tile + window code contains a small script that opens and closes the window. If your website builder removes scripts from custom code, use In the page.
Size
| Setting | What it does |
|---|---|
| Desktop | The shape of the block: 16:9, 4:3, 1:1, 3:4 or 9:16. The block takes the full width of the column you paste it into, and its height follows the shape. |
| Phone | Same as desktop, or Own shape to pick a different shape for screens narrower than 768 px. |
Opened from Studio, the shape starts with the scene's Frame; opened from Products, it starts at 16:9. Changing the shape here does not change the Frame, the snapshots or the scene, and copying the code does not mark the draft as changed.
Starting variants
This section appears when the published product has options (see Options).
| Choice | What the code does |
|---|---|
| Published defaults | The code contains no variant choice. The 3D view opens with the defaults of the published version. |
| Choose starting variants | A list for every option. Follow published default — name leaves that option out of the code; picking a variant writes it into the code. |

Following the default and picking the same variant can look identical today, but they behave differently later:
- An option that follows the default keeps following it. If you change the default in Studio and publish again, pages that already use this code open with the new default — no new code needed.
- A picked variant stays in the code. The code keeps opening with it for as long as that variant exists in the published product. If you later delete it from the product and publish, that option opens with its default again.
The lists show the variants of the published version with their published names; unsaved changes in Studio are not there until you publish. If Studio cannot read the published variants, the window says so and offers Try again; the code then starts with the published defaults. Choosing starting variants changes only this code: it does not change the product's defaults and does not publish anything.
Preview
The preview is a still catalogue image of the product in the shape you chose, arranged the way the poster is shown on your page (see below). It is not a live 3D view, and with chosen starting variants the picture may show a different variant. If the product has no catalogue image yet, the window says so.
To see the real 3D view with your choices, press Open viewer. It opens the published product in a new tab and counts as a storefront view. Opening the window, changing settings and copying start nothing.
Copy the code
| Button | What it copies |
|---|---|
| Copy code | The code for the placement you chose — paste it into your page's HTML. |
| Copy link (link icon next to it) | The direct link to the storefront with your starting variants, to share or to check. |
| Copy next to Link | The same link. |
| Copy next to Embed code | The same code as Copy code. |
| Copy <df-view> next to For developers | The code for the <df-view> element, for pages that control variants themselves — see Control variants from your page. |
The Copy buttons on the right of Link, Embed code and For developers copy without opening the row; click the row's title to see the text. For developers also lists the technical addresses of every option and variant.
The button you pressed confirms the copy (Copied ✓, or Link copied for the link icon) only after the text is really on your clipboard. If your browser does not allow copying, the row opens with the text selected: copy it with Ctrl+C (⌘+C on a Mac).
Paste the whole code — the block, its <style> and, for Tile + window, its <script> — where the 3D view should appear. In a website builder, use its HTML or custom code block. The code points to the product, not to a version: publishing a new version or rolling back does not change it.
Allow your website
The 3D view runs only on websites listed in Settings → Embed domains (see Settings). On any other website the block shows This 3D viewer is not licensed for this website.
- Type the address of your site, for example
https://shop.example.com; typed withouthttps://, it is added for you. - With and without
wwwcount as the same site, and so do its subdomains and any port:https://shop.example.comalso allowshttps://www.shop.example.comandhttps://eu.shop.example.com:8443. - The scheme must match: a page served over
http://needs anhttp://entry. - Wildcards such as
*.example.comare not accepted — subdomains are already included. localhostand127.0.0.1always work, on any port, so you can test the code on your own computer before you list a site. Open your test page through a local web server: from a file opened straight from your disk, In the page works but a tile cannot open its window.- While the list is empty, the product opens only through DF Views itself (its link, Open viewer, Studio) and on
localhost. - A saved change can take about a minute to reach every page.
Your plan sets how many websites you can list; the counter in Settings shows it.
When the 3D view starts
How the product starts loading is set in Studio → Scene → Loading screen, and reaches your page after you publish:
| Start | On your page |
|---|---|
| Right away | The 3D view loads as soon as the block appears. |
| On click | The block shows a poster; the 3D view loads when the visitor clicks it. |
| When seen | The block shows a poster; the 3D view loads when the block scrolls into view. With Tile + window only a click opens the window. |
The poster
With On click and When seen, the block (or the tile) shows a poster until the 3D view starts. It is either a Product shot taken automatically when you publish, or My image that you upload.
- The poster is shown whole. If its shape differs from the block — a wide picture in a square or tall block — you see margins in the colours of the picture's edges and a smaller product. Nothing is cut off; a poster with a transparent background only loses its fully transparent edges.
- The product may change size when the 3D view starts. The live view frames the product with its own camera, so it can look larger than on the poster.
- Which variants the automatic poster shows. A product shot is taken with the camera you see in Studio, in the shape of the scene's Frame, and with the variants the storefront opens with: your published defaults, not what you happen to have selected in the editor. It is taken again each time you publish; products published earlier keep their previous poster until you publish them again.
- Starting variants are not on the poster. If the code picks starting variants, the poster still shows the published defaults; the picked variants appear once the 3D view starts.
- Your own image is never replaced by a product shot.
What needs a new publish, what needs new code
| What to do | When you change |
|---|---|
| Publish a new version | Materials, light, camera, options, default variants, option names, the loading screen or the poster. Pages with your code show the change on their next load; the code stays the same. |
| Copy the code again | Placement, shape, phone shape or starting variants. Replace the old code on your page. |
| Save the list in Settings | The allowed websites. No new code or publish is needed. |
Code you pasted earlier keeps working as it is. If one page shows the same product more than once, use code copied from the Embed window as it is today: each copy then keeps its own shape and starting variants, and each tile opens only its own window.
Storefront views
A storefront view (see Billing) is counted when the storefront starts a viewing session for an embedded 3D view — not when the visitor starts the 3D model. In practice:
- A block counts when it starts loading, also with On click before the visitor clicks. On click and When seen save your visitors the download of the 3D model; they do not reduce the number of views.
- With Tile + window, the tile counts when it loads, and every opening of the window counts again.
- Open viewer counts too.
- If the network loses the answer while a 3D view is starting, the storefront asks again for the same start, and that repeat is not counted as another view. Each new load still counts: a new block, the tile and every opening of its window.
- Nothing is counted when the 3D view is refused before its session starts — for example on a website that is not in Embed domains, or for a product that does not exist. Once the session has started, a later error (for example a model that fails to load) does not cancel the view.
- The code loads lazily: a block far below the visible part of the page counts only when the visitor scrolls near it.
The exact rules and known limitations are in Control variants from your page.