Where do I put the tracking script?
In the <head>, on every page you want counted.
<script defer src="https://app.feasible.lol/js/fs-k7m2q4x5r3n6t2v5.js"></script>The tag carries defer, so it doesn’t block rendering wherever you put it. Head or end of body both work. Head is the habit worth keeping, because it means the tag is present before a fast clicker can leave.
On most sites there’s one file that wraps every page - a layout, a template, a theme header - and that’s where this goes. WordPress, Ghost, Astro, Next.js, Hugo and the rest all have one. Our integrations pages name the exact file for each.
Three things to get right:
- One tag per page. Two copies means two pageviews for one visit. If you’ve added it in a theme setting and a template, remove one.
- The snippet is the one for this site. Each site has its own script filename. Copying another site’s snippet across sends the events to that site.
- Every page, not just the home page. A tag on the home page only means your top-pages report will have one row in it.
You don’t need a tag manager for this, and we’d rather you didn’t use one - a manager loads its own container script, which is usually bigger than ours, to load a tag you could have pasted.
If your site is behind an ad blocker-heavy audience, you can serve the script from your own domain instead.
More on getting started
Didn't answer it? Email help@feasible.lol. A person reads it, and if the answer belongs here we'll add it.