Piping onboarding checklist events into your own analytics
The checklist's state API has everything your analytics stack needs. Here is how to turn step completions into events your existing tools already understand.
The checklist does not send events to your analytics tool on its own — it has no idea PostHog, Amplitude, or whatever you use for funnels exists. What it has is a state API that tells you, for any user, which steps are complete and when. Turning that into funnel events in your own analytics is a bridge you build once, not a built-in integration to configure.
The two ways to bridge it
Client-side: fire your own analytics event at the same moment the checklist's own UI marks a step complete, by listening for whatever signal the widget exposes on completion (a callback or a DOM event, documented alongside the embed script) and calling your analytics SDK from that handler. Server-side: poll or webhook off GET /api/gs/v1/state and diff against the last known state to detect new completions, then forward those as events from your backend instead of the browser.
// client-side, on the widget's completion signal
window.addEventListener('gs:step-complete', (e) => {
analytics.track('onboarding_step_completed', {
step: e.detail.stepKey,
userId: e.detail.userId,
});
});
Why server-side is usually the more honest source
A client-side event only fires if the browser tab stays open long enough to send it, and an ad blocker or privacy extension can silently drop analytics calls without the user or you noticing. A server-side diff against the checklist's own state, run on a schedule, catches every completion regardless of what happened in that specific browser session — it is slower (eventual, not real-time) but it does not miss anything the client-side path can drop.
What to name the events
Match your analytics naming convention, not the API's field names verbatim — stepKey is an API detail, onboarding_step_completed with a step property is an event your funnel tool can build a chart from. Keep the step key itself as the property value rather than inventing a second mapping; two names for the same step drifting apart is the same problem a stale email reference to a renamed step causes, just inside the analytics layer instead.
What not to do
Do not build a custom events table just to re-derive what GET /api/gs/v1/state already tells you for free. The checklist already is the source of truth for step completion; piping it into your analytics tool is about getting it into the funnel charts and cohort tools you already use, not about building a parallel tracking system.
What to measure instead of guessing
Once events are flowing, the actual funnel worth building is step completion by day since signup, segmented by the entry channel (see testing step order for one use of that funnel). Nobody should report a completion rate without stating the time window it was measured over — "completed within 24 hours" and "completed ever" are different numbers and conflating them overstates or understates the real signal depending which way the mistake runs.
See the docs for the state endpoint and completion signal, and the live preview to inspect it live.