Skip to Content
GenerateSaaS

Product signals

The built-in events that show where users get stuck, hit a limit, reach first value or leave - fired centrally from the shared form, toaster, empty state and billing screens, with ids only and never what anyone typed.

The shared form, toaster, empty state and screens report these on their own, so web and desktop send the same names. Client events reach every enabled provider; server events go to PostHog only.

Ids, never content: no property carries a field value, message, toast text or email. Every event honors cookie consent and the account opt-out.

Stuck

EventFired whenProperties
form_errorA submit leaves a field failing validation, once per field per attemptform, field, code (the i18n key, else the rule: required, pattern, too_small)
error_shownAny error toast appearscode (the toast's id, else unlabelled), source (toast)
empty_state_viewedAn EmptyState with a surface prop mountssurface (projects, automations, notifications, integrations, model_providers, organization, chat_no_provider)
  • Name a form with <Form {...form} analyticsId="checkout">; without it the failing field names stand in.
  • Label a toast with toast.error(message, { id: "checkout_failed" }) for a readable code.

Walls

EventFired whenProperties
limit_reachedA run, create or invite is refused by a ceilinglimit, surface
paywall_viewedThe refusal offers an upgrade or a top-upsurface, limit
upgrade_prompt_clickedThe offer is followed, or credits bought on Billingsurface, target (plans / credits)
limitWhere
creditsChat run refused for an empty or held balance
concurrent_runsChat run refused at the plan's concurrent-run cap
plan_featureA plan-locked integration picked (surface: integrations)
projectsProject create over the per-owner ceiling (create_project)
membersInvitation over the seat limit - server event
api_keys / rate_limitAPI key ceiling or daily create limit (create_api_key)

Activation

EventFired whenProperties
feature_usedA project, automation or upload is createdfeature (project_created, automation_created, file_uploaded), target for automations
first_valueServer, once per account, on the first activationEventfeature

ai_message_sent, api_key_created and member_invited count as feature use without a second event. Valid activationEvent ids are PRODUCT_FEATURES in @repo/config.

packages/config/src/index.ts
analytics: {
  activationEvent: "project_created", // default: "ai_message_sent"
  posthog: { publicKey: "phc_...", host: "https://us.i.posthog.com" }
}

first_value is once per account via the user_activations table: only the insert that creates the row sends it. The table is new - generate and apply a migration (Schema changes).

Churn

EventFired whenProperties
billing_portal_openedThe billing portal button is pressedsurface
cancel_flow_startedThe downgrade confirmation openssurface (plan_change), kind (downgrade)
cancel_reason_submittedThe downgrade is confirmed with a reason pickedreason, surface
account_deletedThe deletion link's confirmation succeedsreason when one was picked
payment_failedServer: Stripe invoice.payment_failed, Polar past_dueprovider; Stripe adds billingReason, attempt, finalAttempt
  • Both reason pickers are optional, with no free text. Reasons are CANCEL_REASONS and ACCOUNT_DELETION_REASONS in @repo/config.
  • Cancelling happens in the provider portal, so the picker sits on the in-app downgrade.
  • Stripe: add invoice.payment_failed to your webhook's events.

On this page