# Squarespace

URL: /docs/collect/website/squarespace

Squarespace's **Code Block** accepts HTML, so you can paste your block straight into any page.

**Before you start:**

- Have your Project ID ready and choose *feedback button* or *form on the page*. [How to get these](/docs/collect/website#before-you-paste-three-things-to-check)
- Squarespace only runs scripts in Code Blocks on some plans. If the form doesn't appear on your live site, check your plan in Squarespace's billing settings.

## 1. Copy your block [#1-copy-your-block]

Replace `PASTE-YOUR-PROJECT-ID-HERE` with your Project ID.

**Feedback button**

```html
<button id="orvelt-feedback-button" type="button">Give feedback</button>
<script src="https://unpkg.com/@orvelt/business/dist/opinion-embed.js"></script>
<script>
  (function () {
    var form = OrveltEmbed.configure({
      projectId: 'PASTE-YOUR-PROJECT-ID-HERE',
      visibility: 'public',
    });
    document.getElementById('orvelt-feedback-button').addEventListener('click', function () {
      form.open();
    });
  })();
</script>
```

**Form on the page**

```html
<div id="orvelt-opinion-form"></div>
<script src="https://unpkg.com/@orvelt/business/dist/opinion-embed.js"></script>
<script>
  OrveltEmbed.configure({
    projectId: 'PASTE-YOUR-PROJECT-ID-HERE',
    visibility: 'public',
  }).mount('#orvelt-opinion-form');
</script>
```

## 2. Paste it into your page [#2-paste-it-into-your-page]

Open the page in Squarespace and select **Edit**.

Select an **Add Block** point (or **+**) where the form should go, and choose **Code**.

In the Code Block, check the language is **HTML** and turn **Display Source** off.

Delete the sample text, paste your block, and close the block editor.

Select **Save**.

> **Squarespace shows 'Script disabled' while editing**
>
>
> That's normal. Squarespace doesn't run scripts in the editor. Check the form on your live site.

## 3. Test it [#3-test-it]

Open the live page in a new tab and submit a test opinion. [Test the form](/docs/collect/website/test-the-form)

If you set allowed origins, add your Squarespace address, like `https://www.your-site.com`, and your built-in `squarespace.com` address if customers use it. [Allowed origins](/docs/collect/website/allowed-origins)