Move from Fathom to Headstream

Updated 2026-11-25

What comes across

Your Fathom history imports with a Fathom API key. Imported history shows in reports for visitors, visits, pageviews and bounce rate, by page, referrer, UTM source and campaign, country, device and browser. Goal history comes too: create a goal in Headstream with the same name, or the same page path, and its imported conversions count toward it. Days stop where Headstream's own data starts, so no day counts twice.

1. Import your history

  1. In Fathom, open Settings, then API, and create a key that can read your site.
  2. In Headstream, open Imports and choose Import from Fathom. Paste the key and pick the site.
  3. It runs in the background at about 540 requests an hour, so a few years of a busy site take an hour or two. Importing again replaces the earlier import.

Each request counts toward your Fathom pageview allowance, and Fathom's data is accurate from March 2021. The key isn't stored.

2. Add the script

Add the Headstream script next to your current one. Copy it from the Install card under Project, since that version holds your key:

<script defer src="https://in.headstream.app/t.js" data-key="YOUR_KEY"></script>

To keep ad blockers from missing visitors, serve it from your own domain with the recipe in the First-party tracking card. Your agent can do all of this from agent.md.

3. Move your events

FathomHeadstream
fathom.trackEvent("Signup")headstream.track("Signup")
fathom.trackEvent("Signup", { _value: 4900 })headstream.track("Signup"), with revenue from Stripe instead
fathom.trackPageview() (single-page apps)Nothing: route changes are recorded for you

Use window.headstream?.track(...), since the script loads with defer. Outbound links, file downloads, form submissions and 404s are sent for you. Then add each goal under Goals, as a page visit or an event name. See track events.

4. Run both, then remove Fathom

Leave both scripts on for two to four weeks. Imports shows a day-by-day comparison of Headstream's pageviews against the imported tool's on the days both were counting, so you can see the gap before you remove anything. Totals won't match exactly: tools count bots, blockers and sessions differently, and the methodology says what we count.

Then connect Stripe under Project. That's the part your old tool didn't do: revenue credited to the channels, campaigns and pages that earned it. See connect Stripe.

Questions

Does importing use my Fathom allowance?
Yes. Each request to Fathom's API counts toward your pageview allowance. A few years of a busy site is a few hundred requests.
Do Fathom event values carry over?
No. Headstream takes revenue from Stripe and credits it to the visits behind each payment, so you don't need to send values with events.

See which marketing makes money.

10,000 events a month free · Every feature · No card

Start free
Goms valley · the young river gathers its first streams46.45° N 8.20° E