Your own code and tracking
Add your own JavaScript, or snippets from other tools, to every page of your site. Most sites never need this. When you do need it, it is here.
The short version
- It is an add-on, under Custom Code in website settings.
- What you add runs on every page of that site.
- Tracking snippets bring a consent banner with them.
- Test on a page you can afford to break.
- Removing the add-on stops the code without deleting it.
What it is for
A booking widget from another service. A chat bubble. An advertising pixel. Something small you want on every page that no setting covers.
If what you want is Google Analytics, there is a box for that already and you do not need this.
Where it goes
Code you add runs on every page of that website, just before the end of the page. That is where nearly every third-party tool asks to be put.
Be careful, and here is exactly why
This runs on your live site for real visitors. Broken code can stop the rest of your page working, and it will do it silently: your editor will look fine.
Paste snippets from tools you actually use, from their own instructions. Do not paste code you found somewhere and do not understand. If something stops working right after you added a snippet, take the snippet out first and ask questions second.
Tracking snippets and the consent banner
Third-party tracking generally uses cookies and follows people between sites, so a site carrying it has to ask permission.
Add one and your site shows a consent banner, and those scripts do not run until a visitor accepts. That is not optional and it is not a setting.
So each tool costs you a banner and some visitors' patience. That is a real price, and it is worth being honest about whether you are going to read the numbers a given pixel produces.
If the add-on comes off
Your code stays saved and stops running on your published site. Add the add-on back and it runs again, exactly as it was.