Move from Google Analytics 4 to Headstream

Updated 2026-11-25

What comes across

Headstream can't import GA4 history yet. Keep GA4 running for as long as you want its history, and start Headstream beside it today, so your Headstream history begins now.

1. 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.

If you load tags with Google Tag Manager, add it as a Custom HTML tag on all pages. See Google Tag Manager. Headstream reads Google Consent Mode, so a banner that already updates analytics_storage keeps working.

2. Move your events

GA4Headstream
gtag("event", "sign_up", { method: "email" })headstream.track("sign_up", { method: "email" })
gtag("event", "purchase", { value: 49 })Nothing: revenue comes from Stripe
Enhanced measurement: outbound clicks, file downloads, scrollsSent for you
Key events (conversions)Goals, as a page visit or an event name

Use window.headstream?.track(...), since the script loads with defer. GA4's recommended event names work as they are. See track events.

3. Compare, then decide

Run both for a few weeks. Totals won't match: GA4 models sessions and fills gaps from consent mode, while Headstream counts what arrived. The methodology says what we count, and Google Analytics vs Headstream covers the rest.

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

Can I import my GA4 history?
Not yet. GA4 imports are planned. Until then, keep GA4 running for its history and start Headstream beside it.
Do I have to remove GA4?
No. Many teams keep GA4 for its history or for Google Ads and use Headstream for revenue by channel.

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