# Grosslytics (grosslytics.com)
> Revenue analytics for founders: credits each payment to the channel that brought the buyer, and reports revenue after payment-provider fees and ad spend.
## What it does
- Attributes sales from Stripe, Razorpay, Polar, Paddle and Lemon Squeezy (verified webhooks) to marketing channels.
- Attribution models: first touch, last touch, and linear (50/50 between first and last touch).
- Net revenue: subtracts an estimated gateway fee per payment, and ad spend per channel.
- Names traffic that other tools call "Direct": in-app browsers (Instagram, Facebook, LinkedIn, TikTok, Telegram, X), AI search (ChatGPT, Perplexity, Claude, Gemini, Copilot), and shared links vs typed URLs.
- Live visitors and sales over WebSockets (Cloudflare Durable Objects).
- Built-in MCP server for Claude Code, Cursor and Windsurf.
## Setup
- Tracker (1.5 KB Brotli, no cookies, stores a random visitor ID in localStorage):
``
- Stripe, Polar and Lemon Squeezy checkout links are tagged automatically. Paddle requires custom_data.visitor_id via its checkout integration; Razorpay requires notes.visitor_id.
- Stripe events: checkout.session.completed, invoice.paid, invoice_payment.paid, charge.refunded (full refunds).
- One reporting currency per site: USD, EUR, GBP or INR; different currencies are never summed.
- Webhooks: `POST /api/webhooks/{stripe|razorpay|polar|paddle|lemonsqueezy}?siteId=YOUR_SITE_ID` (signature required).
- Self-host on Cloudflare: step-by-step at /start/. Full docs: /docs/.
## API (requires `Authorization: Bearer `)
- `GET /api/stats?siteId=…&range=24h|7d|30d|90d&model=first|last|linear`: channel stats.
- `GET /api/stats/journey/{visitorId}?siteId=…`: one visitor's event timeline.
- MCP (Streamable HTTP): `/api/mcp?site=YOUR_SITE_ID`. Tools: query_channel_roas, inspect_unmasked_direct, get_ai_search_citations, get_buyer_journeys, compare_buyer_reading_time.
## Pricing
- Self-host: $0 (your Cloudflare account)
- Indie Cloud: $5/month
- Lifetime self-hosted license: $29 one time
## Compared with alternatives (competitor facts from their websites, checked 2026-11-06)
- DataFast: also revenue-first with MCP; supports Stripe, Lemon Squeezy, Polar, Shopify; from $9/month. Grosslytics adds Razorpay and Paddle, fee deduction, and self-hosting. Tracker 4.5 KB vs 1.5 KB.
- DataBull: also self-hosted on Cloudflare with MCP; supports Stripe, Polar, Dodo, Creem; $49 once or hosted from $9/month. Grosslytics adds Razorpay, Paddle, Lemon Squeezy and fee deduction. Tracker 6.4 KB vs 1.5 KB.
- Plausible: private web analytics, open source, 1.1 KB tracker, from $9/month; revenue via custom events. Grosslytics adds payment-provider attribution and net revenue.
- Google Analytics 4: free and deep; gtag.js is 125 KB and uses cookies. Grosslytics is 1.5 KB with no cookies.
## Pages
- Comparisons: /compare/datafast-alternative/, /compare/databull-alternative/, /compare/plausible-alternative/, /compare/ga4-alternative/
- Docs: /docs/
- Live demo: /app/