Squarespace SEO & AEO for Designers

How do I add schema markup to a Squarespace site?

Direct answer

Add schema markup to a Squarespace site by pasting JSON-LD into Code Injection (Settings → Advanced → Code Injection). Put sitewide schema like Organization in the Header field and page-specific schema like FAQPage in a page's Advanced settings under Page Header Code Injection. Squarespace already outputs some structured data automatically, so only add what is missing.

Use JSON-LD, not microdata

Google recommends JSON-LD as the format for structured data (Google Search Central). It is a <script type="application/ld+json"> block that lives in the page head or body, separate from your visible HTML. Squarespace does not offer a native schema editor, so JSON-LD pasted into Code Injection is the only clean way to add structured data beyond what the platform generates automatically.

Where to paste the code

Squarespace has two injection points relevant to schema (Squarewebsites):

Code Injection requires a Business or Commerce plan; the Personal plan only supports per-page Code Blocks, which are less reliable for head-level JSON-LD (Squarewebsites).

Validate before you publish

After pasting JSON-LD, validate it with the Rich Results Test before publishing. This catches syntax errors and confirms whether your schema is eligible for rich results. Refer to schema.org for the correct property names for each type.

Sources: developers.google.com · schema.org · squarewebsites.org