Move from Simple Analytics to Headstream

Updated 2026-11-25

What comes across

Your Simple Analytics history imports from a page view export. 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.

Simple Analytics has no sessions or bounces. Each unique page view counts as one visit and one visitor that day, and imported days stay out of bounce rate.

1. Import your history

  1. In Simple Analytics, open the site's export page. Choose page views, CSV and the whole period you want.
  2. Select these fields: added_iso, path, is_unique, is_robot, referrer_hostname, utm_source, utm_campaign, country_code, device_type, browser_name and duration_seconds. Only added_iso and is_unique are required; the rest fill the breakdowns.
  3. In Headstream, open Imports and upload the file under Import a Simple Analytics export. It's read in your browser, and only daily totals are sent. Importing again replaces the earlier import.

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

Simple AnalyticsHeadstream
sa_event("signup")headstream.track("signup")
Outbound links and downloads (automated events script)Sent for you, as outbound_click and file_download

Use window.headstream?.track(...), since the script loads with defer. Then add each goal under Goals, as a page visit or an event name. Event history isn't in the page view export, so goals start counting from the switch. See track events.

4. Run both, then remove Simple Analytics

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

Do I need an API key?
No. The export comes from Simple Analytics' export page and is read in your browser. Only the daily totals reach Headstream.
Why is bounce rate missing for imported days?
Simple Analytics doesn't record bounces, so imported days stay out of bounce rate rather than lowering it. Pageviews, visitors and every breakdown still count.

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