# Add Shoprocket to a Squarespace site

> Sell from your Squarespace site with a Code block. Paste your embed code, keep the mode set to HTML, and save. Add one line to Code Injection so the cart works on every page. Both need a plan that allows custom code.

Help Centre / Embedding - Updated 19 November 2026

You can sell from your Squarespace site with Shoprocket. You make an embed in Shoprocket, then paste its code into a **Code** block on your page. The cart and checkout open on your own site.

## Before you begin

- Add at least one active product in Shoprocket.
- Your Squarespace plan must allow custom code. Code blocks and Code Injection only work on the plans Squarespace lists as including custom code (Core, Plus and Advanced, and older Business and Commerce plans). On a Basic or Personal plan, the code is saved but does not run.

## 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 a Code block

1. In Squarespace, open the page and click **Edit**.
2. Click **Add block** (or a **+**) where the shop should go, and choose **Code**.
3. Click the pencil icon on the block. Check that **Mode** is set to **HTML**.
4. Paste your code into the block and click away from it.
5. Click **Save**.

Squarespace often does not run code while you are signed in and editing, so the block may look empty. To check your shop, open the page in a private browser window, or use **Preview in Safe Mode**.

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

Your floating cart and live chat only show on pages that load Shoprocket. One line in your site's header loads it on every page.

1. In **Embeds**, click **Copy** on the **Add Shoprocket to every page of your site** card.
2. In Squarespace, open **Code Injection**. On most sites it is under **Settings**, then **Advanced**.
3. Paste the line into the **Header** box and click **Save**.
4. Open any page of your site in a private window. Back in **Embeds**, the card changes from **Not seen yet** to **Connected**.

Once the line is in your header, paste only the last line of your embed code on each page, the one starting `<div`.

## If the shop doesn't appear

- **The page has Ajax loading turned on.** Some Squarespace templates load pages without a full refresh, and code blocks may not run until the page is reloaded. Follow Step 3 to add the line to Code Injection. This fixes the problem on most sites.
- **The page sits inside an Index page.** Code blocks in index sections may not run. Put the shop on a normal page instead.
- **Your plan doesn't include custom code.** The code stays in the block but does nothing. Upgrade the plan, or use one of the options below.

## No code allowed on your plan?

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