Custom code (head and body)

Add your own HTML, scripts or styles to the head or body of every page of the site.

Global Custom Code lets you paste code into four places of every page: the start and end of the head, and the start and end of the body. It is the place for analytics tags, verification meta tags, third-party widgets and small scripts. It is edited in the admin under Site Settings > Custom Code.

How it works

  • Positions: head-start, head-end, body-start, body-end.
  • Editor limit: 50,000 characters per position ('Maximum length of each code position is 50,000 characters.').

When to use it

  • Google Analytics or Tag Manager snippet
  • Search console verification meta tag
  • A chat widget script before </body>

Limitations

  • No validation of the pasted HTML in the editor.

Availability

  • Works in Designer and MCP.
  • Included in every plan.
  • Limits: 50,000 characters per position in the editor; 20,000 bytes per position through MCP.

How to use it.

  1. Open the admin sidebar > Site Settings > Custom Code.
  2. Pick a position (head start, head end, body start, body end).
  3. Paste your code and save.

Related features.

No card needed

Build it today.Pay when it goes live.

Every feature is unmetered while you build. Checkout opens the first time you publish.