One sub-2 KB analytics stack from first blog click to recurring MRR.
Unify cookie-less marketing analytics, 2 to 8 step signup funnels, weekly retention cohorts, signed payment-webhook revenue, and UI click friction without juggling three bloated tools.


Why do SaaS teams choose TrimStats over stitching separate traffic, funnel, and replay tools?
TrimStats gives SaaS teams one 1.96 KB gzipped EU-hosted analytics stack covering cookie-less acquisition, opt-in first-party IDs and identify(userId) for logged-in apps, 2 to 8 step funnels, 2 to 12 week retention cohorts, 90-day Stripe/Paddle/Polar revenue attribution, UI click friction, and rolling 7-day anomaly alerts on every tier from $17/month.
Step-by-step setup for SaaS Teams
Copy-paste implementation verified against the live TrimStats tracker and collector APIs.
- 1
Deploy the 1.96 KB script across marketing pages and docs
Start strictly cookie-less on your landing pages, comparison pages, and documentation so EU visitors never hit an analytics consent wall.
Marketing site <head>html<script defer src="https://collect.trimstats.com/t.js" data-site="pk_live_your_key"></script> - 2
Connect logged-in SaaS sessions with identify(userId)
After authentication in your app, pass an opaque database user UUID (never a raw email) to link pre-signup touchpoints with post-signup activation and weekly retention cohorts.
app-session.tsts// Call after login or session hydration with an opaque user UUIDif (session?.user?.id) {window.trimstats?.('identify', session.user.id);} - 3
Wire payment webhooks and multi-step onboarding funnels
Connect Stripe, Paddle, or Polar webhooks for 90-day ClickHouse revenue attribution, then define up to 50 conversion goals and 2 to 8 step funnels covering visit -> signup -> activated -> paid.
- 4
Enable opt-in UI friction and founder anomaly digests
Add data-friction="true" on high-value pricing and checkout flows to catch rage clicks and dead clicks, and subscribe founders to weekly digests plus deduplicated 6-hour anomaly alerts.
High-signal custom events to track for SaaS Teams
Fire any event with window.trimstats?.('event', name, props) and attach it to conversion goals or multi-step ClickHouse funnels.
| Event name | When to fire | Sample properties |
|---|---|---|
| signup_started | Visitor submits or starts the account creation form. | {"source":"pricing_cta"} |
| signup_completed | New SaaS account is provisioned in PostgreSQL. | {"auth_provider":"email"} |
| workspace_created | User creates their first project, site, or workspace inside the app. | {"step":1} |
| onboarding_completed | User reaches your core aha moment (for example first verified beacon or integration). | {"minutes_from_signup":4} |
| checkout_started | Workspace owner clicks Upgrade to launch Stripe, Paddle, or Polar checkout. | {"target_plan":"growth"} |
| team_member_invited | Account owner invites a teammate, signaling multi-seat expansion. | {"role":"admin"} |


Weekly SaaS retention cohort matrix tracks post-signup stickiness over 5 weeks
Percentage of persistent users returning in Weeks 0 through 5 (seeded acme.dev demo)
| Cohort | W0 | W1 | W2 | W3 | W4 | W5 |
|---|---|---|---|---|---|---|
| Oct 19 (1,420) | 100% | 44% | 36% | 31% | 28% | 26% |
| Oct 26 (1,580) | 100% | 46% | 38% | 33% | 30% | 27% |
| Nov 02 (1,690) | 100% | 48% | 39% | 34% | 31% | 29% |
Week 1 retention improved from 44% to 48% across consecutive onboarding releases, with Week 4 stabilizing near 30%.
Methodology: Seeded acme.dev SaaS cohort matrix illustrating ClickHouse weekly retention tracking for persistent first-party and identified users.
View chart data table
| Label | Oct 19 (1,420) | Oct 26 (1,580) | Nov 02 (1,690) |
|---|---|---|---|
| W0 | 100% | 100% | 100% |
| W1 | 44% | 46% | 48% |
| W2 | 36% | 38% | 39% |
| W3 | 31% | 33% | 34% |
| W4 | 28% | 30% | 31% |
| W5 | 26% | 27% | 29% |
SaaS Teams analytics FAQ
Implementation details, privacy trade-offs, and event-quota answers.
Can we run cookie-less on our marketing site and identified mode inside our SaaS app?
Should we pass customer email addresses into window.trimstats("identify")?
Are funnels, cohorts, revenue webhooks, and anomaly alerts locked behind enterprise pricing?
How does TrimStats help with enterprise SaaS customer security reviews and GDPR?
What happens to our SaaS data if a Product Hunt or Hacker News launch spikes traffic?
How does TrimStats compare to PostHog or Plausible for a B2B SaaS stack?
Co-founder of DotCamp LLC in Brooklyn, NY and lead engineer of TrimStats. Ships privacy-first web analytics, ClickHouse pipelines, and WordPress plugins used on 115,000+ active sites.
- • Architect of the TrimStats 1.96 KB gzipped browser tracker, Fastify collector, and ClickHouse MergeTree pipeline
- • Co-founder of DotCamp LLC (est. 2019), creator of Ultimate Blocks (50,000+ installs), WP Table Builder (50,000+ installs), Tableberg, and OptimizeCamp
- • WordPress.org plugin & theme developer since 2016 with 1,200+ community support replies and 5M+ cumulative plugin downloads
Verification standard: Code snippets, custom event payloads, and webhook contracts for SaaS Teams are verified against the live TrimStats tracker (1.96 KB gzipped) and collector schema as of 2026-11-30.
Related documentation and guides
Instrument SaaS Teams in under 60 seconds
Start on Starter ($17/month for 100,000 monthly events), with cookie-less privacy defaults and full access to revenue webhooks, funnels, cohorts, and UI friction.