Script Manager
Adding a tracking code, pixel, chat widget or any other snippet a service gave you — on every page or just the pages you choose — and managing them all in one place afterwards.
Sooner or later a service hands you a block of code and says "add this to your website". Google Analytics does it. So does a Facebook pixel, a booking widget, a live-chat box, a review badge. The Script Manager takes that block of code, asks you the two questions the instructions imply, and puts it where it belongs — without you touching a single file.
Everything you add stays on one list, so a year from now you can see exactly what is running on your website, pause it, change it, or take it off again.
Opening it
Open the builder's main menu (the ☰ button at the top of the left rail) and choose Tools → Script Manager.
You'll also be offered it in the chat. If you paste a tracking code into the message box, or ask for something like "add my Facebook pixel", a small card appears above the box saying It looks like you're adding …. Select Open the Script Manager and the code you pasted is already in place, waiting for you. You can ignore the card and send the message to Max instead — it never gets in the way — but the Script Manager is the better home for a script, because Max can only write it into a page, where it is harder to find and change later.
Adding a script
The dialog walks you through three steps.
1. The code
Paste the whole block exactly as it was given to you, including the <script> parts. Don't
worry about tidying it up. If you copied the code a moment ago, the Paste button in the
empty box puts it in for you.
- If we recognise the service, we say so and fill in the name and the usual placement for you — "That looks like Google Analytics".
- If what you pasted is plain JavaScript with no
<script>tag around it, we add the tag for you and tell you we have. - The name is only for you. It's how you'll recognise the script on the list later, so "Google Analytics" beats "script 1".
- If what you pasted isn't a snippet at all — a whole web page, or server code — we say so here, before you go any further.
2. Where it goes
Two questions, and the answers are usually already right:
- Which pages? Every page of my website is the normal answer — analytics and tracking tags need to see every visit. Choose Only the pages I choose for something that belongs on one page, like a booking widget or a conversion tag on a thank-you page. You can tick as many pages as you like; a blog or any other collection of pages is offered as a single choice ("All posts"), so a new post is covered automatically. A website that has no pages yet can't offer this choice; add the script to every page now and edit it once your pages exist.
- Where on the page? Your instructions usually say: in the head, right after the opening body tag, or just before the closing body tag. If they don't say, leave it alone — when we recognised the service, its usual place is already chosen and marked.
You can go back to an earlier step at any time by selecting it at the top of the dialog. If you close the dialog part-way through, what you had entered is still there when you open it again.
If your website shows a cookie notice, a third question appears: whether this script should wait for the visitor's permission. Picking a category — Analytics, Marketing or Functional — holds the script until the visitor allows that category, which is what privacy rules in many countries expect of anything that isn't essential. Scripts set to essential run for everybody.
3. Check it over
The last step says the whole decision back to you in one sentence — "Google Analytics will load on every page, in the page head" — and shows the exact code that will be added. Nothing has changed yet. Select Add this script and it's done.
When it goes live
There is nothing to publish. A script is not part of your website's pages, so adding, editing, pausing or removing one never creates a draft and never needs a rebuild.
- Your website's preview address shows the change on the very next page view.
- If you have connected your own domain, it follows within a few minutes. The dialog tells you when that applies to you.
Scripts deliberately do not run inside the builder's preview. Your analytics should not count you editing your own website, and a chat widget opening over the canvas while you are trying to click a section is worse. To check a script is working, open your website in a new tab — the dialog gives you a link — and look for it there.
Managing what's already there
The list shows every script with the pages it runs on, where it loads, and the outside services it reaches. Each one has:
- a switch to pause it — it keeps all its settings, which is what you want while you are working out whether a script is slowing a page down;
- a pencil to change the code, the name, the pages or the placement;
- a bin to remove it. You're asked once, right there in the row, and for a few seconds afterwards the row offers Undo, which puts the script back exactly as it was.
Scripts already written into your pages
Under Already in your website's files you'll see scripts that were not added here: ones that came across when you copied an existing website, or ones Max wrote into a page when you asked it to. Each row says where it lives — "Every page that uses the 'main' layout", "The /thanks page" — and which outside services it reaches.
- Manage here takes it out of the page and adds it to the list above, with the same code, so from then on it behaves like anything else you installed. This is the tidy-up worth doing after copying a website: it moves the previous owner's analytics under your control in one click.
- The bin removes it from the page and leaves it at that.
Both of these change your website's files, so your website is rebuilt — the same as any other edit, and undoable from the file's history in the code editor.
Some scripts say "built by the page's own code". Those are written by the page itself rather than pasted in, so changing them means editing the page in the code editor; the Script Manager shows them so nothing is hidden from this screen, but leaves them alone.
What it won't take
The Script Manager is for the snippets services hand out. It refuses things that are a mistake rather than an embed, and says why:
- server-side code (anything with
<?phpin it) — websites here are static, so it could never run; - a whole web page pasted in by accident;
- anything longer than 20,000 characters — a tracking tag is a few lines, so this almost always means too much was copied.
A website can hold 25 scripts. If you need more than that, you want a tag manager — add Google Tag Manager here once and manage the rest inside it.