# Replace your old Shoprocket code

> If you moved your shop from the old Shoprocket, some pages of your website may still load the old code. The Embeds screen lists each one. Click Replace code, copy the new code, and paste it over the old code in your site builder.

Help Centre / Embedding - Updated 18 November 2026

If you moved your shop from the old Shoprocket, your website still works with the code you pasted back then. We recommend swapping it for the new code, one page at a time.

When a page has the new code, every change you make in your dashboard shows on that page. The old code keeps a few settings of its own, such as the width of your shop on the page. You can't change those from the dashboard until you replace it. The old code will also be retired in the future, so replacing it now saves you a rush later.

## See which pages still use the old code

1. In your dashboard, go to [Embeds](https://app.shoprocket.io/go/embeds).
2. Near the top, a card lists every page of your website that still loads the old code. Under each page, you can see the embeds that show your shop there.

If no card appears, none of your pages has loaded the old code in the last 14 days, and there is nothing to do.

Your **Overview** also shows **Update the shop code** while any page still uses the old code. Click **Replace code** there to go straight to **Embeds**.

![The Embeds screen with the card listing the pages that still load the old code, each with a Replace code button](https://shoprocket.io/img/help/replace-old-shoprocket-code/old-code-pages.webp)

## Replace the code on a page

1. On the card, click **Replace code** next to the page. A panel opens on the right.
2. Click **Copy new code**. If the page shows your shop in more than one place, there is a code for each one.
3. Open the same page in your site builder and find the old Shoprocket code. It is usually in an HTML or code block. You can recognise it because it mentions `sr-element` or `cdn.shoprocket.io/loader.js`.
4. Delete the old code and paste the new code in the same place.
5. Save and publish the page.

The panel has a tab for each site builder: **HTML**, **WordPress**, **Squarespace**, **Wix** and **Webflow**. Each tab tells you where to paste the code. For more detail, see [Embed Shoprocket on any website](https://shoprocket.io/help/embed-on-any-website.md).

![The Replace code panel with the page, its new code, the Copy new code button and the steps for each site builder](https://shoprocket.io/img/help/replace-old-shoprocket-code/replace-code-drawer.webp)

You can also click **Replace code** next to an embed in the list below the card. It opens the same panel.

## After you replace it

Your page shows the same embed as before. It now uses the embed's settings from your dashboard, so any change you save there shows on the page. If the old code set a width for your shop on the page, open the page once and resize the block in your site builder if it needs it.

A page leaves the list after 14 days without loading the old code. You don't need to do anything else.

## If a page has no matching embed

Sometimes the panel says we have not matched the page's old code to an embed yet. In that case:

1. Click **New embed** in the panel.
2. Create an embed that shows the same products as the old code did, and save it.
3. Copy its code, then paste it over the old code on that page in your site builder.

---

- HTML version: https://shoprocket.io/help/replace-old-shoprocket-code
- Language: English (en)
- Also in: [العربية](https://shoprocket.io/ar/help/replace-old-shoprocket-code.md), [Deutsch](https://shoprocket.io/de/hilfe/alten-shoprocket-code-ersetzen.md), [Ελληνικά](https://shoprocket.io/el/help/replace-old-shoprocket-code.md), [Español](https://shoprocket.io/es/ayuda/sustituye-tu-codigo-antiguo-de-shoprocket.md), [Français](https://shoprocket.io/fr/aide/remplacer-votre-ancien-code-shoprocket.md), [עברית](https://shoprocket.io/he/help/replace-old-shoprocket-code.md), [हिन्दी](https://shoprocket.io/hi/help/replace-old-shoprocket-code.md), [Bahasa Indonesia](https://shoprocket.io/id/bantuan/ganti-kode-shoprocket-lama.md), [Italiano](https://shoprocket.io/it/aiuto/sostituisci-il-vecchio-codice-shoprocket.md), [日本語](https://shoprocket.io/ja/help/replace-old-shoprocket-code.md), [Lietuvių](https://shoprocket.io/lt/pagalba/pakeiskite-sena-shoprocket-koda.md), [Norsk](https://shoprocket.io/nb/hjelp/bytt-ut-den-gamle-shoprocket-koden.md), [Nederlands](https://shoprocket.io/nl/hulp/oude-shoprocket-code-vervangen.md), [Polski](https://shoprocket.io/pl/pomoc/zastap-stary-kod-shoprocket.md), [Português](https://shoprocket.io/pt/ajuda/substitua-o-codigo-antigo-do-shoprocket.md), [Română](https://shoprocket.io/ro/ajutor/inlocuieste-vechiul-cod-shoprocket.md), [Русский](https://shoprocket.io/ru/help/replace-old-shoprocket-code.md), [ไทย](https://shoprocket.io/th/help/replace-old-shoprocket-code.md), [Türkçe](https://shoprocket.io/tr/yardim/eski-shoprocket-kodunu-degistirin.md), [中文](https://shoprocket.io/zh/help/replace-old-shoprocket-code.md)
