# SaaS analytics from signup to renewal

SaaS analytics from named events: activation funnels, retention by signup cohort, trial to paid, upgrades and churn, and feature adoption in open-source Pug.

Source: https://pug.sh/use-cases/saas

SaaS analytics asks whether new users activate, come back, pay after a trial, upgrade or cancel, and which features they use. Pug answers each with an insight over named events, and the billing events your server sends land on the same profile as the person’s product events.

## Activation

A Funnel from signup through workspace_created to invite_sent (or whichever step is your first value) shows the share of new users who reach each step and the average time between steps.

## Retention by signup cohort

A Retention with signup as the start event and feature_used as the return event puts each signup week in a row and shows the percentage who came back in each week after. Compare newer rows with older ones to see whether an onboarding change moved the curve.

## Trial to paid

A Funnel from trial_started to trial_converted, broken down by plan, gives the conversion rate for each plan. subscription_trial_will_end, sent a few days before a trial ends, fits between them as a middle step.

## Upgrades and churn

Trends counts upgrades as subscription_changed where the new plan is one of your higher plans, and cancellations as subscription_canceled broken down by reason. Count invoice_failed and payment_failed beside them to separate failed payments from decisions to leave.

## Feature adoption

feature_used carries the feature’s ID and name. Trends with unique users, broken down by feature, shows how many people use each one; a Retention on feature_used filtered to one feature shows whether they keep using it.

## Billed revenue

Trends sums amount on invoice_paid by month, broken down by currency so dollars and euros stay apart. It is a revenue signal for analysis; your billing system stays the record of what was paid.

## Send billing events from your server

Subscription and trial events start in your billing provider, so track them where you handle its webhooks, with the Node, Ruby, or Go SDK and the customer’s user ID. In Node that is pug.track('user_123', 'trial_converted', { planId: 'pro' }). Pass the same ID to identify() in the browser (which does nothing until the visitor consents, since the web SDK starts cookieless) and the event lands on the same timeline as the pages and features they used before paying. Server calls use a private key, which never ships in client code.

## What Pug does not calculate

Insights count events and people, and none divides one series by another, so MRR, net revenue retention, and a churn rate across all subscribers come from your billing data, not from Pug. Per cohort you get close: a Retention from subscription_started to subscription_renewed, by month, shows the percentage of each month’s new subscribers on a monthly plan who renewed in each month after. Profiles are people, not companies: Pug has no account-level profile, so to read one customer account, set a trait such as company on each of its users and filter by it.

## Ask Claude or ChatGPT about activation

Pug is listed in Claude’s connectors directory and among ChatGPT’s plugins, and Claude Code, Cursor, or any other MCP client connects to https://api.pug.sh/mcp. Sign in once and ask which onboarding step lost the most accounts this month, or how the last four signup cohorts retained. The answers run through the same API as the dashboard, so the numbers match. Sixteen of its seventeen tools only read; the other creates and edits dashboards, and no connection can delete or share a dashboard, erase a person, or send events.

Built on well-known events like `signup`, `trial_started`, `trial_converted`, `subscription_changed`, `subscription_canceled`, `feature_used`. [Generate a tracking plan](https://pug.sh/tools/event-tracking-plan-generator).

[Free analytics for startups](https://pug.sh/learn/free-analytics-for-startups)

## Common questions

### Do I have to instrument every event up front?

No. On the web, autocapture records page views, clicks, scrolls, and form interactions after one init(), so you get data from the first visit. Add named track() calls for the few business events (like subscription_started) that you want to build funnels and cohorts on.

### Can my team sign in with SSO?

Yes, on every plan. Your team signs in with Google Workspace or your own identity provider over OIDC (Okta, Microsoft Entra ID, Keycloak), with Require SSO per verified domain, on Cloud or self-hosted at no extra cost.

### What does Pug Cloud cost for a SaaS?

The first 100k events every month are free, with 1 year of history. Past that, the Pay as you go plan is $1 a month plus $20 per million events, falling in steps to $10 per million past 100M, and keeps 5 years of history. Each step bills only the events inside it, so a month of 1M events costs $19.00 and a month of 10M costs $167.00. Seats and projects cost nothing extra, and going over the allowance never blocks or drops an event.

### Can I keep customer data on my own servers?

Yes. Pug is open source under AGPL-3.0: one Go binary on PostgreSQL, ClickHouse, NATS, and Dragonfly, with no plans or limits on your own server. Raw events stay inside your infrastructure.
