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.

Updated

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):

  • Header Code Injection (sitewide): use for Organization, WebSite, or LocalBusiness schema that should appear on every page. Requires a Core plan or higher.
  • Page Header Code Injection (per page): use for FAQPage, Article, or Product schema that applies to one page only. Found in a page’s Settings → Advanced tab.

Code Injection is available on the Core, Plus and Advanced plans and some legacy billing plans (Squarespace); sites on older legacy plans (Personal, Business, Commerce) keep the features their plan had. The current Basic plan has no Code Injection.

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.

One stray comma breaks the whole block, so validate the JSON before the page goes live and again after edits.

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