Adding Ecwid online store to Squarespace

If you have a Squarespace-based website and want to add an online store to it, you can achieve it with Ecwid in a quick and easy way.

Sign up for an Ecwid account (you can start with the Free plan) to get online admin panel, set up your store there and then add the Ecwid store integration code to a page on your Squarespace website. As a result, your Ecwid store catalog will appear on your site and buyers will be able to add products to the shopping cart and checkout there.

To add Ecwid store to a Squarespace site, follow the instruction below that consists of two parts — adding HTML code to Squarespace page and adding the script code to Squarespace footer.

Step 1. Add the Ecwid integration code to Squarespace

  1. Log into your Ecwid account.
  2. In Ecwid admin, go to Website → Other platforms and sitebuilders.
  3. Scroll down to the "Add your store to one more website" section. Click Pick Platform and choose Squarespace.
  4. Click Copy Code to Clipboard. You’ve copied the first part of your store integration code that you will need to add to a Squarespace page:


  1. Log in to your Squarespace account and follow the steps for your editor version:
  • In the Home menu, click Pages and select the page (or add a new page) where you want your store to appear:


  • Hover over the page area and click Edit:


  • Click the + button in the top right corner to add a new content block:


  • Select the Embed block:


  • Click the </> icon to manually add the code:


  • Paste the code copied on step 4 in the Embed Data window in Squarespace, click Set, then Apply, then Save:


If you want to add store extensions like Category Navigation menu, Additional Shopping Bag and Product Search box besides the store to your site page, you can copy extensions’ codes in Ecwid admin and add them in this block, too (or add them in separate Embed blocks). They will appear on the page in the same order as their codes are added.
You may want to add a certain category or a product page instead of the entire store to your web page. In this case, use one of the codes below as the first part of the Ecwid integration code:
<div id='my-store-1003' data-default-category-id='2222'></div>
<div id='my-store-1003' data-default-product-id='1111'></div>
Remember to replace 1003 with your store ID, 2222 and 1111 with the respective category or product ID.

Step 2. Add the Ecwid script to Squarespace

Now let’s add the second part of store integration code:

  1. In Ecwid admin, go to Overview → Squarespace again and click the second Copy Code to Clipboard button to get a script code that you will need to add to your site footer:


  1. Return to your Squarespace account.
  2. In the Home menu, navigate to Settings → Advanced → Code Injection.
  3. In the Footer section paste the script code that you’ve copied on step 1:


If you’re adding the store along with store extensions like Category Navigation menu, Additional Shopping Bag and Product Search box, the script code will be slightly different. In this case go to this page, specify there your store ID, then select what extensions you want to add to your site along with the Ecwid store. After that copy the generated script code (it starts with <script>) and add it to your site footer.
  1. Click Save in the top left corner.

Done! Now you can see your Ecwid online store in the site preview:


Example for Squarespace 7.1

If the store page is not linked to the navigation, make sure to move it to your site menu and start accepting orders online.

Related articles

Marketing checklist
Levels of changing store design
Got an order? Next steps

Was this article helpful?

Awesome! Thanks for your feedback!

Thanks for your feedback!

Sorry about that! What went wrong?
43 out of 83 found this helpful