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, workspace), 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.

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.