Skip to content

Scripts ​

A Script is a reusable snippet of HTML/JavaScript (a tracking pixel, an analytics tag, or any custom code) that you inject into your Branded Pages, Branded Sites or Layout Themes. Define the code once, then attach the script wherever you want it to run.

Creating or editing a script ​

After Internal Management (internal name, description, tags), the Scripts section has three optional code fields, by where they're injected into the page:

  • Head Code: injected into the page <head> (most analytics/verification tags go here).
  • Body Start Code: injected at the start of the <body>.
  • Body End Code: injected at the end of the <body> (good for code that should run after the page loads).

Attaching a script ​

A script only runs where you attach it. Use the sub-navigation tabs to attach it to:

  • Layout Themes: runs everywhere that theme is used.
  • Branded Pages: runs on specific pages.
  • Branded Sites: runs across a site.

Your account can switch scripts off entirely in Embeds and scripts. Then no script runs on any page, and this menu stays read-only until they're switched back on.

Deleting ​

A script that is currently attached somewhere is in use and can't be deleted until it's detached. Scripts support trash/restore; restore a trashed script to edit it, or force-delete to remove permanently.

With Claude ​

Claude can't manage scripts yet: that stays in the panel.