Skip to content

Adding a script to the whole site

Paste the code of an analytics tool, a chat bubble or a review widget only once, for every page.

An analytics tool, a chat bubble or a review widget often gives you a short code to paste “into every page”. In TOWeb, you paste this code only once, in the site settings.

Pasting the code

  1. Open Settings, Advanced tab.
  2. In Custom code, paste the code into Code in <head> or Code before </body>, as the tool asks. Without specific instructions, choose Code before </body>.
  3. Publish the site.

Good to know

  • The code is added to every page of the published site. It does not run in the editor preview. To see it without publishing, use Publish › Test the site locally.
  • A tool that shows something (a bubble, a banner) appears where it was designed to, often at the bottom of the page or on top of it.
  • A tracker (analytics, advertising) pasted as it is starts before the visitor has accepted cookies. To make it wait for their consent, write its tag like this: <script type="text/plain" data-wl-category="analytics" data-wl-src="adresse du script"></script>.
  • Custom code is published from the Premium edition up.

A widget in a specific place

For a calendar, a map or an external form placed in a page, use the Embed block in HTML code mode instead, in a section of the page. It also shows in the preview.

The footer does not accept code: its columns take links, text, an image, the newsletter sign-up and social networks.

Updated on November 14, 2026