# Add Shoprocket to a Bubble app

> Sell from a Bubble app or site. Add an HTML element to your page, paste your embed code, and preview or deploy. Code in your app's header needs a paid Bubble plan.

Help Centre / Embedding - Updated 19 November 2026

You can sell from an app or site built with Bubble. You make an embed in Shoprocket, then paste its code into an **HTML** element on your page. The cart and checkout open right in your app.

## Before you begin

- Add at least one active product in Shoprocket.
- An **HTML** element works on every Bubble plan. Adding code to your whole app's header, in Step 3, needs a paid plan.

## Step 1: Get your embed code

1. In your Shoprocket dashboard, go to **Embeds** and click **New embed**.
2. Choose what it shows and a layout, then click **Continue**.
3. Click **Save & get code**, then **Copy code**.

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

For more on the layouts you can pick, see [Embed Shoprocket on any website](https://shoprocket.io/help/embed-on-any-website.md).

## Step 2: Paste the code into an HTML element

1. In the Bubble editor, open the page where the shop should go.
2. From the visual elements on the left, drag an **HTML** element onto the page.
3. Paste your code into the element's HTML box.
4. Make the element big enough for your embed.
5. Click **Preview** to try it, then deploy your app when you are ready.

The editor doesn't run code, so it shows an empty box. Preview your app to see the shop.

## Step 3 (optional, recommended): Add Shoprocket to every page

Your floating cart shows on every page that runs your Shoprocket code. On a paid Bubble plan, you can add one line to every page of your app.

1. In Shoprocket, go to **Embeds** and click **Copy** on the **Add Shoprocket to every page of your site** card.
2. In Bubble, go to **Settings**, then **SEO / metatags**.
3. Paste the line into **Script/meta tags in header**.
4. Preview or deploy your app, then open it. Back in **Embeds**, the card changes from **Not seen yet** to **Connected**.

Once the line is in your header, an HTML element only needs the last line of your embed code, the one starting `<div`.

## If the shop doesn't appear

- **You are looking at the editor.** Bubble runs code only in preview and in your deployed app.
- **You didn't deploy.** Changes reach your live app only after you deploy them.
- **The element is too small.** Make the HTML element taller so the whole embed fits.

## Related

- [Embed Shoprocket on any website](https://shoprocket.io/help/embed-on-any-website.md)
- [Embed one product or a category](https://shoprocket.io/help/embed-a-single-product-or-category.md)
- [Sell from a site that doesn't allow code](https://shoprocket.io/help/sell-from-a-site-that-doesnt-allow-code.md)

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

---

- HTML version: https://shoprocket.io/help/add-shoprocket-to-bubble
- Language: English (en)
- Also in: [العربية](https://shoprocket.io/ar/help/add-shoprocket-to-bubble.md), [Deutsch](https://shoprocket.io/de/hilfe/shoprocket-zu-bubble-hinzufuegen.md), [Ελληνικά](https://shoprocket.io/el/help/add-shoprocket-to-bubble.md), [Español](https://shoprocket.io/es/ayuda/anadir-shoprocket-a-bubble.md), [Français](https://shoprocket.io/fr/aide/ajouter-shoprocket-a-bubble.md), [עברית](https://shoprocket.io/he/help/add-shoprocket-to-bubble.md), [हिन्दी](https://shoprocket.io/hi/help/add-shoprocket-to-bubble.md), [Bahasa Indonesia](https://shoprocket.io/id/bantuan/tambahkan-shoprocket-ke-bubble.md), [Italiano](https://shoprocket.io/it/aiuto/aggiungere-shoprocket-a-bubble.md), [日本語](https://shoprocket.io/ja/help/add-shoprocket-to-bubble.md), [Lietuvių](https://shoprocket.io/lt/pagalba/shoprocket-bubble-programoje.md), [Norsk](https://shoprocket.io/nb/hjelp/legg-shoprocket-til-i-bubble.md), [Nederlands](https://shoprocket.io/nl/hulp/shoprocket-toevoegen-aan-bubble.md), [Polski](https://shoprocket.io/pl/pomoc/dodaj-shoprocket-do-bubble.md), [Português](https://shoprocket.io/pt/ajuda/adicionar-shoprocket-ao-bubble.md), [Română](https://shoprocket.io/ro/ajutor/adauga-shoprocket-pe-bubble.md), [Русский](https://shoprocket.io/ru/help/add-shoprocket-to-bubble.md), [ไทย](https://shoprocket.io/th/help/add-shoprocket-to-bubble.md), [Türkçe](https://shoprocket.io/tr/yardim/shoprocket-bubble-uygulamasina-ekleme.md), [中文](https://shoprocket.io/zh/help/add-shoprocket-to-bubble.md)
