# Embed Shoprocket on any website

> Sell from the website you already have. Create an embed in Embeds, click Get code, and paste it into your page on WordPress, Squarespace, Wix, Webflow or plain HTML. Changes you save later reach every page with no re-paste.

Help Centre / Embedding - Updated 28 October 2026

An embed puts part of your shop on any website: one product with a buy button, a full product catalog, your categories, or a search box. You build it in **Embeds**, click **Get code**, and paste the code into your page. The cart and checkout open right on your page, so customers never leave your site.

You only paste the code once. When you change an embed later, even switching it to a different layout, every page it is on updates when you save.

## Before you begin

- Add at least one active product. An embed for one product needs a product to sell.
- You need to be able to edit your website and add a code or HTML block to a page. The notes for each site builder are below.

## Step 1 (optional, recommended): Add Shoprocket to every page of your site

At the top of **Embeds** is a card called **Add Shoprocket to every page of your site**. It holds one line of code for your site's header. With it in place, your floating cart and live chat work on every page of your site, not only the pages with an embed, and any embed you add later just works.

1. In your dashboard, go to **Embeds**.
2. On the **Add Shoprocket to every page of your site** card, click **Copy**.
3. Choose your site builder from the tabs under the code (**HTML**, **WordPress**, **Squarespace**, **Wix** or **Webflow**) and follow its two steps to paste the line into your site's header.
4. Open any page of your site. The card's status changes from **Not seen yet** to **Connected**.

You can skip this step. Every embed's code includes the same line, so an embed works on its own on any page.

## Step 2: Create an embed

1. In **Embeds**, click **New embed**.
2. Under **What it shows**, pick one: **One product**, **Product catalog**, **Categories** or **Search**.
3. Pick a layout:
   - **One product**: **Button**, **Compact**, **Card**, **Feature** or **Full detail**. Then pick the product under **Which product?**
   - **Product catalog**: **Grid**, **Carousel** or **List**. Under **Which products?** choose **All products**, **A category** or **Hand-picked**.
   - **Categories**: **Tiles**.
   - **Search**: **Search box** or **Search icon**.
4. Click **Continue**.

Every layout is the same embed with different settings, so you can switch layout later in the editor and the code you paste stays the same.

![The New embed screen with Product catalog chosen and the Grid, Carousel and List layouts to pick from](https://v3.shoprocket.io/img/help/embed-on-any-website/new-embed-chooser.webp)

## Step 3: Customise it

The editor shows a live preview you can click through as a shopper: add to cart, open products and check out. Change what the embed shows in the **This embed** tab. The **Store design** tab sets your colours and fonts for your whole store, so all your embeds and your floating cart match.

The embed gets a name to start with, such as "Products · Grid". You can rename it at any time.

When you're happy, click **Save & get code**.

## Step 4: Copy the code and paste it into your site

After saving, the **Get code** panel opens. It looks like this:

```html
<!-- Shoprocket: Product catalog -->
<script src="https://.../loader.js" data-pk="pk_..."></script>
<div data-shoprocket="embed" data-embed-id="emb_..."></div>
```

Always copy your own code with the button, never retype it. The first line names the embed, the script loads Shoprocket for your store, and the last line is where the embed appears.

![The Get code panel with site builder tabs, the embed code and the Copy code button](https://v3.shoprocket.io/img/help/embed-on-any-website/get-code.webp)

1. Click **Copy code**.
2. Choose your site builder from the tabs in the panel and paste the code where the embed should appear:
   - **HTML**: paste the code where the embed should appear. The script line only needs to be on a page once, however many embeds it has.
   - **WordPress**: in the block editor, add a **Custom HTML** block where the embed should go. Paste the code and update the page. On WordPress.com, scripts need a plan that allows plugins.
   - **Squarespace**: edit the page and add a **Code** block where the embed should go. Paste the code, keep the display set to HTML, and save.
   - **Wix**: in the editor, choose **Add**, then **Embed code**, then **Embed HTML**. Paste the code into the box and resize it to fit. Wix shows it in a frame, so give it room for the cart.
   - **Webflow**: drag a **Code Embed** element where the embed should go. Paste the code, save, and publish the site.

If you already added Shoprocket to your site's header in Step 1, the page only needs the last line of the code, the one starting `<div`.

To get the code again later, open the embed from **Embeds** and click **Get code**.

**No website?** For one product with no options, the **Get code** panel also offers **No website? Share a buy link**. Click **Copy link** and share it anywhere: it opens checkout with that product. A product with options makes its link on its own product page, where you pick which option.

**Adding search to a menu.** For a **Search** embed, the panel also gives you a link, `#!/search`, to add as a menu item called Search on your site. It opens the same search on any page with a Shoprocket embed, with no code needed.

## The floating cart

Your store has one floating cart. It is the button customers click to open their cart and check out, and it appears on every page your Shoprocket code runs on. In **Embeds** it is the first row, **Floating cart**, marked **Always on**.

To change how it looks, click **Floating cart**. You can set its **Position** on the page edge, its **Distance** from the side and top or bottom, what it **Shows**, its **Shape**, **Size** and **Icon** (or your own image), and whether a **Sign-in** link is shown. Click **Save**. Its colours and fonts come from your store design.

## Changing or removing an embed

- **Change it**: open the embed from **Embeds**, make your changes and click **Save**. Every page showing it updates. No new code is needed.
- **Remove it from a page**: delete the code from that page on your website.
- **Delete it**: in **Embeds**, use the delete button on its row and confirm. Take its code off your pages too.

## For developers

The developer guide covers every option on the code, showing an embed without the dashboard, and the JavaScript the widget offers: [Embed the widget](https://v3.shoprocket.io/docs/embedding.md).

## Related

- [What is Shoprocket?](https://v3.shoprocket.io/help/what-is-shoprocket.md)
- [Connect your Stripe account](https://v3.shoprocket.io/help/connect-stripe.md)
- [Your hosted shop](https://v3.shoprocket.io/help/your-hosted-shop.md)

[Open Embeds in your dashboard](https://app-v3.shoprocket.io/go/embeds)

---

- HTML version: https://v3.shoprocket.io/help/embed-on-any-website
- Language: English (en)
- Also in: [العربية](https://v3.shoprocket.io/ar/help/embed-on-any-website.md), [Deutsch](https://v3.shoprocket.io/de/hilfe/auf-jeder-website-einbetten.md), [Ελληνικά](https://v3.shoprocket.io/el/help/embed-on-any-website.md), [Español](https://v3.shoprocket.io/es/ayuda/integrar-en-cualquier-sitio-web.md), [Français](https://v3.shoprocket.io/fr/aide/integrer-shoprocket-sur-un-site.md), [עברית](https://v3.shoprocket.io/he/help/embed-on-any-website.md), [हिन्दी](https://v3.shoprocket.io/hi/help/embed-on-any-website.md), [Bahasa Indonesia](https://v3.shoprocket.io/id/bantuan/sematkan-di-situs-mana-pun.md), [Italiano](https://v3.shoprocket.io/it/aiuto/incorpora-shoprocket-su-qualsiasi-sito.md), [日本語](https://v3.shoprocket.io/ja/help/embed-on-any-website.md), [Lietuvių](https://v3.shoprocket.io/lt/pagalba/iterpkite-shoprocket-i-bet-kuria-svetaine.md), [Norsk](https://v3.shoprocket.io/nb/hjelp/bygg-inn-shoprocket-pa-et-hvilket-som-helst-nettsted.md), [Nederlands](https://v3.shoprocket.io/nl/hulp/shoprocket-op-elke-website-insluiten.md), [Polski](https://v3.shoprocket.io/pl/pomoc/osadz-shoprocket-na-dowolnej-stronie.md), [Português](https://v3.shoprocket.io/pt/ajuda/embed-em-qualquer-site.md), [Română](https://v3.shoprocket.io/ro/ajutor/incorporeaza-shoprocket-pe-orice-site.md), [Русский](https://v3.shoprocket.io/ru/help/embed-on-any-website.md), [ไทย](https://v3.shoprocket.io/th/help/embed-on-any-website.md), [Türkçe](https://v3.shoprocket.io/tr/yardim/web-sitesine-gomme.md), [中文](https://v3.shoprocket.io/zh/help/embed-on-any-website.md)
