Add ordering to your site
Delitero is launching soon. Join the waitlist and we will email you when it opens.
Paste this snippet into your website where the menu should appear, replace the rst_ value with your restaurant ID, and the full ordering flow renders there: menu, cart, checkout, and confirmation, inside your own page on your own domain.
<div data-delitero-restaurant="rst_9f2a64d1-7c3e-4b8a-9d21-8e5f0a6c4b7e" style="height: 640px; max-width: 480px"> <a href="https://order.delitero.com/r/rst_9f2a64d1-7c3e-4b8a-9d21-8e5f0a6c4b7e">Order online</a> </div> <script src="https://order.delitero.com/embed.js" defer></script>
The exact snippet for your restaurant, ID already filled in, is in your admin under Settings, Ordering page, "Add ordering to your website". It works on any site that accepts custom HTML with scripts. The link inside the container is part of the snippet: it shows while the script loads, and on sites that strip scripts it keeps working as a plain link to your hosted ordering page. Leave it in.
Guides per platform
- Plain HTML
- WordPress
- Squarespace
- Wix
- Webflow
- Next.js
- SvelteKit
- Astro
- Shopify
- Framer
- Duda
- GoDaddy
- Weebly
- Carrd
- Google Sites
- AI website builders
If your platform is not listed, the plain HTML guide applies almost everywhere: find where your builder lets you paste custom HTML and put the snippet there. And the hosted ordering page at order.delitero.com/your-restaurant always works as a plain link, whatever your website can or cannot embed.
Sizing the widget
The widget fills its container and scrolls internally, so the container's height and max-width are yours to choose. 640 by 480 pixels is a good default; a taller container shows more of the menu at once. Multiple widgets on one page work, and each container mounts once.
Help search engines and AI assistants read your menu
The widget draws your menu with a script. Google runs scripts, and the widget also tells Google, in the structured format search engines read, what your business sells and how to order. You do not need to do anything for that.
Many other crawlers, including most AI assistants, do not run scripts. To give them your menu as text on your own site, use the snippet with menu text instead of the short one. In your admin, Settings, Ordering page, press Copy snippet with menu text. Or open this address, replacing the rst_ value with your restaurant ID, and copy everything on the page:
https://order.delitero.com/r/rst_your-id/embed.html?format=text
Paste it where the short snippet would go. It contains your menu as plain text inside the same container, followed by the same script. Visitors see the live widget as before; anyone whose browser or crawler does not run scripts sees the text menu, which inherits your site's own fonts and link colours.
The text is a copy and shows the date you made it, with a link to your live menu. Copy it again after you change prices or dishes. If your site is built with a framework or a build step, fetch that address when you build or serve the page instead of pasting it, and it is never out of date.
The snippet never changes your page's title, canonical address or search settings. If you already describe your business in your own structured data and do not want ours added, add data-delitero-structured-data="off" to the container. More on how assistants read your store: Links into your store, and how AI assistants read it.
Paste it once and forget it
Every update ships behind the same address and the same restaurant ID. You will never be asked to update your site. The script URL never gains a version number, the data-delitero-restaurant attribute never changes meaning, and your restaurant ID never changes, whatever else does. Two rules keep that promise intact on your side:
The fallback link's target, order.delitero.com/r/ plus your restaurant ID, is the permanent form of your ordering page: it always forwards to your current page address, so it is the right URL to hard-code anywhere a link must outlive everything else.
- Never add an integrity (SRI) attribute to the script tag. This file updates itself behind the same address; a pinned hash will break your ordering the first time it does.
- If your site sets a Content-Security-Policy, add these, which were checked
with a real payment through the widget on a page enforcing exactly them:
- script-src: https://order.delitero.com https://js.stripe.com https://*.js.stripe.com
- connect-src: https://order.delitero.com https://api.stripe.com https://*.stripe.com
- frame-src: https://js.stripe.com https://*.js.stripe.com https://hooks.stripe.com
- img-src: https://order.delitero.com https://*.stripe.com data: (menu photos; without it the cards show no photos)
- font-src: https://order.delitero.com (the widget's typeface; without it the widget uses the system font and nothing else changes)
- style-src 'unsafe-inline', only if your policy already restricts styles: Stripe adds inline styles to the payment form.
- The delivery map inside the widget loads street-map tiles from OpenFreeMap. A strict policy also allows https://tiles.openfreemap.org in connect-src and img-src, and blob: in worker-src. Without them the widget still takes orders; the map shows its shapes without the streets.
Apple Pay and Google Pay on your website
Wallet buttons such as Apple Pay and Google Pay only appear on websites registered for your Stripe account. In the admin, Settings, Ordering page, Websites with your ordering page (owners), add each website where you paste the snippet, as a bare domain such as yourbusiness.com. Up to 10 websites. It saves when you leave the field, and registration with Stripe happens behind the scenes. Card payments work without it; only the wallet buttons need it. Your hosted ordering page needs nothing.
Ordering page
<div data-delitero-restaurant="rst_9f2a64d1-7c3e-4b8a-9d21-8e5f0a6c4b7e" style="height: 640px; max-width: 480px"> <a href="https://order.delitero.com/r/rst_9f2a64d1-7c3e-4b8a-9d21-8e5f0a6c4b7e">Order online</a> </div> <script src="https://order.delitero.com/embed.js" defer></script>
It will not fight your site
- Your styles cannot break it, and it cannot leak into your page. The widget renders in an isolated shadow root: your CSS never reaches widget internals, and widget CSS never touches your site.
- It stays light. The widget is pinned to a light appearance so a dark site theme or OS dark mode cannot make the menu unreadable.
- Payments are Stripe's. The checkout inside the widget is the Stripe Payment Element running against your own Stripe account. Card details go to Stripe, never to your website or to Delitero.
- No trackers, no third parties. The script loads nothing into your page beyond the widget itself and Stripe's checkout. Ad blockers have nothing to object to.
Single-page apps and late-inserted containers
The script mounts every data-delitero-restaurant container it finds at load. If your site inserts the container after load (a single-page app, a page builder preview), mount it yourself:
window.Delitero.mount(document.querySelector('#my-container'))Redirect-based payment methods
Cards confirm inside the widget without leaving your page. Payment methods that redirect return the customer to your page with delitero_order and delitero_slug added to the URL; the widget reads them on load and resumes at the confirmation step. Nothing to configure, but do not strip query parameters from the page the widget lives on.
Did not find what you needed? Search the guides, or see common problems and what to do.

