Dynamite

How to add custom code to a Squarespace site

Squarespace calls its site-wide script box Code Injection. Whatever you paste into the Header field is injected into the head tag on every page. Saving is the whole deployment; there is no publish step.

Before you start

Steps

Check it worked

What goes wrong

Increase conversions on your Squarespace site by 20%

Dynamite personalizes the page for every visitor. Dynamite personalizes a Squarespace site from one script line in the Header field of Code Injection. From there you decide which parts of a page may change and who sees each version.

Dynamite for Squarespace

Questions

Which Squarespace plans allow code injection?

Squarespace’s help article lists the Core, Plus and Advanced plans, and some legacy billing plans.

Do I have to publish after adding code?

No. Code in the Header field is live once you save.

Can I run a script on Squarespace checkout?

No. Squarespace says checkout pages don’t support code. The order confirmation page has its own field in the same panel.