Know what changed, what broke, and what drove revenue.

Privacy-first analytics that ties visits to revenue, shows which AI assistants send you traffic, and flags the pages that frustrate visitors. One 1.96 KB script, no cookies.

  • Plans from $17/month
  • 14-day money-back guarantee
  • Cancel anytime
app.trimstats.com/sites/acme.dev
34 live · 1.96 KB cookie-less
acme.dev/ Overview
34 liveCookie-less
Visitors
28,410
+11.4%
Page views
74,290
+8.9%
Bounce rate (<10s)
38.2%
-3.1%
Active visit time
2m 08s
+19s
Unique visitors (current vs prior 30-day window)
Hover chart points to inspect daily counts · Bots dropped before billing
Nov 291,620vs 1,180
06001.2k1.8kNov 01Nov 10Nov 19Nov 29
Top PagesClick row to filter
Top ReferrersClick row to filter

Live traffic, top pages, and sources, with no cookies.

Tracking 7 sites · 6,720 events counted since

1.96 KB
Script size, gzipped
0
Cookies by default
39
AI crawlers tracked
$17–$134
Per month, every feature included
Revenue attribution

Prove which referrers, posts, and campaigns generate paying customers.

Payments are read on the server from Stripe, Paddle, or Polar, so orders hidden by ad blockers, renewals, and refunds are all counted. Each payment is linked to the visit that started it, up to 90 days back.

  • First-touch and last-touch views
  • Revenue per visitor, order value, and buyer conversion rate
  • 13 currencies converted to USD
app.trimstats.com/sites/acme.dev/revenue/webhooks
HMAC Verified · 90d join
Signed Webhook Endpoints
Server-to-server billing verification (ad-blocker immune)
Stripe
stripe-signature
Verified
Polar.sh
Standard Webhooks
Verified
Paddle
paddle-signature
Verified
Custom HMAC
x-trimstats-signature
Ready
Checkout attribution payload
const attr = trimstats?.attribution?.();
// { vid, uid, ref, lp, utm_source }
$290.00 LTV
First-touch: news.ycombinator.com · Desktop · 90d lookback
Pageview · /blog/script-benchmarkNov 04 · 14:12

Referrer: news.ycombinator.com · Active dwell 3m 42s · 90% scroll

Pageview · /pricingNov 04 · 14:16

Compared Growth vs Scale tiers · Active dwell 1m 18s

Custom event · signup_completedNov 11 · 09:05

Returned 7 days later · Merged via window.trimstats('identify')

Stripe Webhook · subscription_new+$290.00

Verified HMAC signature · Joined to Nov 04 Hacker News first-touch

Switch between visitors to see how renewals, upgrades, and refunds are matched.
app.trimstats.com/sites/acme.dev/crawlers?tab=referrals
1,840 AI visitors · $6,420 rev
AI-referred visitors
1,840
+41.2% vs 30d
Cited passages
318
17.3% of hits
Attributed AI rev
$6,420
48 orders
AI AssistantsClick to filter
Cited passagesAuto-captured
ChatGPT/vs/google-analytics-484 hits

“cookie-less by default with 24-hour rotating daily salts and a 1.96 KB gzipped script”

Perplexity/features/revenue-attribution61 hits

“signed Stripe, Paddle, and Polar.sh webhooks join payments to 90-day visitor journeys”

Claude/docs/ai-crawlers47 hits

“AI crawler requests never count against your monthly TrimStats event quota”

ChatGPT/pricing39 hits

“every tier from Starter to Scale includes all analytics features without paywalls”

AI traffic

See what ChatGPT, Claude, and Perplexity crawl, quote, and convert.

Browser scripts never see AI crawlers. TrimStats records 39 of them on the server, and shows the visitors and revenue each AI assistant sends you.

  • Crawler hits never use up your monthly events
  • See the exact sentence an assistant quoted from your page
  • Set up through Cloudflare, WordPress, or 3 lines of code
Also on every plan

Friction, funnels, and alerts, without another script.

See all features
UI friction

Find the buttons people rage-click.

Rage clicks and dead clicks by page and element, with no session recording.

Top friction pagesRage / Dead · Rate
/pricing
64 / 1986.4%
/checkout
49 / 884.9%
/signup
17 / 742.8%
/docs/quickstart
5 / 571.8%
button#apply-coupon.btn-ghostdiv.annual-savings-pill
Funnels and retention

See where visitors drop off.

Funnels of up to 8 steps and weekly retention cohorts.

Weekly retention matrixNov 16 · W1: 51% retained
CohortW0W1W2W3W4W5
Oct 19
100%44%36%31%28%26%
Oct 26
100%46%38%33%30%·
Nov 02
100%48%39%34%··
Nov 09
100%49%41%···
Nov 16
100%51%····
Anomaly alerts

Hear about problems before customers tell you.

An email when traffic, conversions, or friction change sharply week over week.

Email alert previewDeduplicated · Max 1/day
[TrimStats] 2 anomalies detected on acme.dev
Conversion dip-29% CR

Goal Start Paid Trial dropped from 4.1% to 2.9% (64 vs 90).

Friction spike+68%

Page /checkout hit 52 rage/dead clicks vs 31 prior week.

Privacy

Cookie-less by default.

No cookies, no localStorage, and no stored IP addresses. First-party IDs are an opt-in setting per site.

Browser storageNone (0 bytes)
Visitor hashSHA-256(salt + IP + UA)
Salt rotation32-byte / 24h UTC
Raw IP on diskNever persisted
Verified benchmarks (Nov 2026)

20x to 25x smaller than GA4 and PostHog

TrimStats t.js1.96 KB gzipped · 1.73 KB Brotli
1.96 KB

Includes goals, UI friction, and AI citation capture

Fathom AnalyticsSimple traffic script
~2.4 KB

No multi-step funnels, cohorts, or signed payment webhooks

Google Analytics 4 (gtag.js)Base tag without GTM
~40 KB

Sets 2-year _ga cookies, requires cookie consent banner

PostHog (posthog-js)Core web SDK
~50 KB

Before lazy session-replay and survey chunks load

GA4 + Google Tag ManagerTypical marketing stack
~135 KB

Heavy parse/execution overhead on Core Web Vitals (INP)

TrimStats is measured on its production build. Competitor sizes are approximate, and prices are from their public pricing pages.

See all 7 comparisons

See these numbers for your own site.

Install in 30 seconds

One script tag. No tag manager.

index.html
<script
  defer
  src="https://collect.trimstats.com/t.js"
  data-site="pk_live_your_key"
></script>

Paste it before </head>. Works on any site, including single-page apps.

Read the quickstart
Pricing

Every feature unlocked on every plan. Scale only with traffic.

Known bots are dropped before billing, and every plan absorbs a 20% traffic spike.

Compare plans in detail

Starter

$17/month

or $170/year (2 months free)

  • 100,000 events / month
  • Up to 5 sites
  • 365 days of data
  • Every feature included
Choose Starter

Growth

Recommended
$44/month

or $440/year (2 months free)

  • 1,000,000 events / month
  • Up to 25 sites
  • 730 days of data
  • Every feature included
Choose Growth

Scale

$134/month

or $1,340/year (2 months free)

  • 5,000,000 events / month
  • Up to 100 sites
  • 1,095 days of data
  • Every feature included
Choose Scale

Every plan comes with a 14-day money-back guarantee. Cancel anytime from the billing portal.

Built by DotCamp LLC · Brooklyn, NY · Est. 2019
About DotCamp
Imtiaz Rayhan
Imtiaz Rayhan
Co-Founder & Lead Engineer, DotCamp & TrimStats

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.

Istiak Rayhan
Istiak Rayhan
Co-Founder & Product Lead, DotCamp & TrimStats

Co-founder and Product Manager at DotCamp LLC and co-creator of TrimStats. Publisher, SEO practitioner, and WordPress product leader building creator tools since 2012.

Every number on this page is measured against the production build, last checked .

Questions before you sign up

What is TrimStats?
TrimStats is a privacy-first web analytics platform that runs from a single 1.96 KB script. Every plan, from $17 to $134/month, includes cookie-less tracking, revenue attribution, AI crawler and referral tracking, funnels, UI friction signals, and anomaly alerts.
Is there a free trial?
No. Every plan is paid, from $17/month, and the first payment is covered by a 14-day money-back guarantee. You can explore the live demo before signing up, and cancel anytime from the billing portal.
Do I need a cookie consent banner?
Usually not. By default TrimStats sets no cookies, writes nothing to localStorage, and never stores raw IP addresses. The optional first-party ID mode uses localStorage and needs your own consent assessment.
How is TrimStats different from Google Analytics 4 and Plausible?
Google Analytics 4 loads roughly 40 KB and sets cookies. TrimStats is 1.96 KB and sets none by default. Plausible keeps funnels and revenue tracking for its Business tier, while every TrimStats plan from $17/month includes them, along with AI crawler tracking and UI friction signals.
How does revenue attribution work without tracking pixels?
Your checkout passes a small TrimStats attribution snapshot to Stripe, Paddle, Polar, or your own webhook. TrimStats verifies each signed payment on the server and links it to the first and last visit of that buyer over the previous 90 days.
How does TrimStats track AI crawlers and AI referrals?
AI crawlers are recorded on the server through Cloudflare, the @trimstats/ai-crawl middleware, or the WordPress plugin, and never use up your monthly events. In the browser, the script records visits from 13 AI assistants and the passage each one quoted.
What happens if traffic spikes past my plan?
Every plan has a 20% grace buffer above its monthly event limit, with usage alerts at 80% and 100%. Known bots are filtered out before billing, so a crawler surge does not use up your events.
Which frameworks and platforms are supported?
TrimStats installs with one script tag on static HTML, Next.js, Astro, React, Vue, WordPress, Shopify, and Webflow. Navigation inside single-page apps is tracked automatically.

Start measuring revenue, AI traffic, and UX friction in 30 seconds.

Plans from $17/month with every feature included, and a 14-day money-back guarantee.