How to add a counter or third-party widget to all pages

← Back

The “About site” tab in general settings, the “Widget HTML code” field — the code is inserted on every page of the site.

  1. Open “General settings” → the “About site” tab.
  2. Find “Widgets (HTML code to insert on all pages)”.
  3. Paste the code the service gave you in full — along with the <script> tags.
  4. Click “Save all”.

This is for things that should be on every page: visit counters, online chat, ad system pixel. Code for a single page is better inserted into the section's text itself, in HTML mode.

This code isn't translated into other site languages — and rightly so: there's nothing to translate in it, and translation would break the script.

If it didn't work

  • The counter doesn't see visits. Make sure you pasted the code in full. Half the code won't cause an error, but it won't work either.
  • The site got slower. Every third-party script is a request to a third-party server. Three or four counters noticeably slow down a page.
Did the article help?

See also