The video is in the works. Until then, the guide will get you there.
Step-by-step guide
What you need for this
- A paid Webflow plan. Custom code is not part of the free Starter plan. You need either a Site plan for this project or a paid Workspace plan, meaning Core, Growth, Agency, or Freelancer. Without one of those, the field stays locked for you.
- Your tracking code. You get it under Tracking code with one click on "Copy".
- Access to your Webflow account with the right to change "Site settings" and publish the website.
- A published website. As long as your site has never been live, nobody can be counted.
Site settings
Sign in to Webflow. You land in the dashboard with the overview of your websites.
Pick the website you want to measure and click the three dots (•••) on it.
Click "Settings".
Are you in the Designer right now because you were busy with the layout? Then you do not have to go back to the dashboard. Click the three horizontal bars in the top left. A menu opens, and there you choose "Site settings".
Custom code
In the "Site settings", choose the menu item "Custom code".
You now see two large text fields, one above the other: "Head code" and below it "Footer code". Whatever you enter here applies to your entire website.
Pasting in the tracking code
Click into the upper "Head code" field and paste your tracking code. If there is other code in there already, leave it alone and simply add yours underneath. Several codes side by side are no problem here.
Saving
Click "Save".
Do not leave "Custom code" without saving. Anyone who just closes the page will find the field empty the next time around and then goes looking for the mistake somewhere completely different.
Publishing
Now comes the step where most people in Webflow get stuck. Click "Publish" in the top right and publish your website.
When you publish, watch which addresses you check off. Webflow usually offers you two: your own domain and the Webflow address ending in webflow.io. Publish to the address your visitors actually come through as well. Otherwise, the old version without the tracking code stays up there.
Checking
Now the moment of truth, and it takes less than two minutes:
- Open your website in a new browser window.
- Click through a few pages.
- Switch to the Real-time report in Trustlytics.
- Within a few seconds, your own visit should show up there.
If something is there, everything is installed correctly. If it stays empty, the section below will help.
When nothing gets counted
Five causes cover almost every case:
| Cause | What to do |
|---|---|
| Not published | By far the most common case in Webflow. Click "Publish" in the top right and check off your own domain while you are at it. |
| Code in the "Footer code" | Cut it and put it into the upper "Head code" field. Then save and publish again. |
| Not saved | Open "Custom code" again. If the field is empty, "Save" did not go through. Paste the code once more and save. |
| Code in the "Page settings" instead of the "Site settings" | Then only that one page gets measured. Move it into the "Site settings" under "Custom code". |
| Wrong address registered | The code only works on the website listed in your Trustlytics account. Check that under Website. With Webflow, this is often a mix-up between your own domain and the webflow.io address. |
Common questions
Do I have to paste the code into every page individually?
No. Whatever is in the "Head code" of the "Site settings" applies to your entire website. New pages, new blog posts, and new CMS entries are included automatically as soon as you publish.
"Head code" or "Footer code", what is the difference?
"Head code" ends up in the head section and loads before the page content. "Footer code" only comes at the very end. On short visits, the footer is simply too late. So always "Head code".
The "Head code" field is missing for me. What is going on?
Most likely the plan. Custom code is not included in the free Starter plan. As soon as a Site plan runs for your project or your Workspace is on a paid plan, the field is available.
Is a Site plan enough, or do I also need a paid Workspace plan?
As a rule, a Site plan for the project you want to take live is enough. You only need a paid Workspace plan once you work more as a team or need additional features. For the measurement alone, the simplest paid route does the job.
Why do I not see anything of my code in the preview?
You are not supposed to see anything. Our script works invisibly in the background, it does not change your website visually at all. Whether it runs is something you see in the Real-Time report, not on the page.
Is it enough if I only publish to the webflow.io address?
Only if your visitors actually arrive through that address. If you have your own domain, you have to publish there too. And your Trustlytics account has to hold that same address.
I use a cookie banner or a consent tool. Do I have to enter the code there?
No, quite the opposite. Tools like that hold scripts back until somebody has agreed. Trustlytics works without cookies and needs no consent. So just leave our code in the "Head code" and do not wire it into the consent logic. Otherwise, you will be missing all the visitors who did not click.
Do my visitors need a cookie banner now?
No. Trustlytics works without cookies. Your visitors do not have to click anything away or confirm anything.
Can I remove the code later?
Yes. Open "Site settings", choose "Custom code", delete the Trustlytics section from the "Head code" field, click "Save" and publish. From then on, nothing is measured anymore.
Will my website get slower because of it?
No. The script is tiny and loads in the background without holding up the rest of your page.