Skip to main content
On Squarespace, add the site script with code injection so popups can show on every page, and use a Code block for an embedded form. Both need a plan that allows custom code.
Before you start: add your site’s addresses under Contacts > Forms > Websites: your custom domain and, if visitors use it, your squarespace.com address. Copy the install snippet.

Install the site script

1

Open Code Injection

In your site, open Settings, then Developer Tools (or Advanced) and Code Injection.
2

Paste the snippet

Paste the install snippet into Header:
3

Save

Select Save. Open your site outside the editor and check the website changes to Connected.

Embed a form

  1. Edit the page, select Add Block where the form goes, and choose Code.
  2. Paste the form’s embed code, with the block’s mode set to HTML:
  1. Save the page. Scripts don’t run inside the editor, so check the form on the live page.

Popups

Create the popups the site script shows.

Embed a form

Embed variants, layouts and prefill.