Move from Umami to Headstream
Updated 2026-11-25
What comes across
Your Umami history imports with an API key, from Umami Cloud or a self-hosted Umami 3.5 or later. 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. Custom events come across too, so a goal with the same name counts them.
Umami doesn't record bounces for pages, referrers or campaigns, so those breakdowns stay out of bounce rate. Totals, countries, devices and browsers keep theirs.
1. Import your history
- In Umami, open Settings, then API keys, and create a key. On Umami Cloud that's at cloud.umami.is.
- In Headstream, open Imports and choose Import from Umami. Paste the key. For self-hosted Umami, also paste its address, such as
https://umami.example.com. - Pick the websites to import. Umami only reports a day at a time, so each day of history takes nine requests, about 7,200 an hour: a year takes around half an hour. Importing again replaces the earlier import.
The key is used only while the import runs, then deleted. Days are in UTC.
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
| Umami | Headstream |
|---|---|
umami.track("signup") | headstream.track("signup") |
umami.track("signup", { plan: "pro" }) | headstream.track("signup", { plan: "pro" }) |
data-umami-event="signup" | data-headstream-event="signup" |
umami.identify("user-id") | headstream.identify({ email }) |
Use window.headstream?.track(...), since the script loads with defer. Then add each goal under Goals with the event's name, and its imported history counts toward it. See track events.
4. Run both, then remove Umami
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 self-hosted Umami work?
- Yes, version 3.5 or later, which has API keys. Headstream's servers call its API, so it needs a public https address.
- How long does it take?
- Umami reports one day at a time, so each day of history is nine requests. At about 7,200 requests an hour, a year of history takes around half an hour.