# Add Shoprocket to a Framer site

> Sell from your Framer site. Add the site-wide line under Custom Code in your site settings, then drop an Embed component with your embed's code where the shop should go. Publish, and check your live site.

Help Centre / Embedding - Updated 19 November 2026

You can sell from your Framer site with Shoprocket. In Framer, you add Shoprocket to your whole site first, then place your embed on a page with an **Embed** component. The cart and checkout open on your own site.

## Before you begin

- Add at least one active product in Shoprocket.
- Custom code runs on your published site. Check Framer's plans page for which plans include custom code for your site.

## Step 1: Add Shoprocket to every page

Framer loads pages without a full refresh, so Shoprocket works best when it loads once for the whole site.

1. In your Shoprocket dashboard, go to **Embeds** and click **Copy** on the **Add Shoprocket to every page of your site** card.
2. In Framer, open your site settings and go to **Custom Code**.
3. Click **Add Script**, give it a name such as "Shoprocket", and paste the line.
4. Place it in the head, set it to run once, and save.

## Step 2: Get your embed code

1. In Shoprocket, 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 3: Place the embed on your page

1. In Framer, open the **Insert** menu, search for "Embed", and drag the **Embed** component to where the shop should go.
2. In the component's settings, choose **HTML**.
3. Paste the last line of your embed code, the one starting `<div`. You already added the script line to every page in Step 1.
4. Make the component wide enough for your shop, and set its height so the products are not cut off.
5. Publish your site.

The canvas may not show the shop while you design. Open the published site to check it. Back in **Embeds**, the card from Step 1 changes from **Not seen yet** to **Connected**.

## If the shop doesn't appear

- **You are looking at the canvas or the preview.** Framer runs custom code on the published site. Publish, then open the live page.
- **The shop is cut off.** Make the Embed component taller, on each breakpoint you use.
- **The shop disappears after moving between pages.** Check that the script from Step 1 is on every page, rather than only in the Embed component.

## No code allowed on your plan?

You can still sell. Share a buy link for a product from its page in Shoprocket, and use it on a Framer button. Or send customers to [your hosted shop](https://shoprocket.io/help/your-hosted-shop.md).

## 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)
- [Replace your old Shoprocket code](https://shoprocket.io/help/replace-old-shoprocket-code.md)

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

---

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