# Ripples Metrics (ripples.sh) > Ripples Metrics, also written Ripples and found at ripples.sh, is analytics for founders that shows, for every product they run, where users come from, which ones pay and which ones stay, by joining traffic, search, ad spend, revenue and retention on one screen. Paste one script tag, connect Stripe, Google Ads and Search Console, and get one screen per product and one across all of them: where your users come from, which ones pay, which ones stay, and what each one cost you. Traffic, search, ad spend, revenue and retention, joined on the person and attributed to the channel, with no events to define. Works for web and iOS; ask it questions from Claude or Cursor over MCP. Free until $1K MRR, then $29 a month. ## Docs - [Introduction](https://ripples.sh/docs): Ripples Metrics (ripples.sh) is lightweight analytics for indie products. One script tag gives you pageviews, sessions, traffic sources, Web Vitals, visitor profiles. JS SDK methods: track(name, opts), milestone(name, props), identify(props), pageview(), getVisitorId(). milestone() records a lifecycle moment counted once per person (onboarding_completed, demo_requested, mql), never product usage. track() powers the Activation dashboard with product area grouping. Use activated: true on a specific event occurrence to mark the moment a user activated (e.g. 10th message sent) — it flags the moment, not the event type. - [Installation](https://ripples.sh/docs/installation): Install via script tag: . Guides for Next.js, React, Vue/Nuxt, Astro, Laravel. SPA routing handled automatically. Queue pattern available for pre-load calls. - [Track Product Usage](https://ripples.sh/docs/custom-events): ripples.track(name, { area?, activated?, ...props }) is ONLY for significant product usage — actions that prove a user got value (created a budget, sent a message, invited a teammate). It is NOT a generic event log like PostHog: do not send pageviews, banner impressions, button clicks, or 'viewed X' events. Every track() call counts as meaningful engagement and feeds the Activation dashboard; noise pollutes the funnel. 'area' groups actions into product areas. 'activated: true' marks the specific occurrence that represents this user's activation milestone (e.g. 10th transaction) — not every occurrence of that event type. Ripples auto-detects first occurrence per user, computes adoption rates, correlates with retention/payment. Events sent via sendBeacon. Lifecycle moments counted once per person (email_verified, onboarding_completed, paywall_viewed, demo_requested, mql) are NOT track() events: use ripples.milestone(name, props) (see /docs/milestones). Billing events (payment_failed, refunds) are neither. - [Track Companies (B2B)](https://ripples.sh/docs/companies): Company tracking for B2B products, the Segment/June group model: one kind of group, the company. Web: ripples.group(companyId, traits?) e.g. ripples.group('acme_42', { name: 'Acme' }) remembers the company in localStorage and sends it as `co` on every later event until another group(), ripples.resetGroup() or ripples.reset() (tracker v1.9.0+). Server SDKs: PHP $ripples->group($userId, $companyId, $traits), Python ripples.group(user_id, company_id, **traits); after that the user's events from any SDK count for their company with nothing passed per call. iOS: Ripples.shared.group(_:traits:), resetGroup(). HTTP batch: `$type: group` with `$company_id`, optional `$user_id` and `$traits`; any event may carry `$company_id` to name its company explicitly. A user can be in several companies; events naming none count for the one they were most recently active in. Traits merge (sent keys overwrite, others kept); `name` is the display name. Company keys up to 255 chars. - [Identify Users](https://ripples.sh/docs/identify): ripples.identify({ id, email, name, avatar_url, signed_up_at, plan, ...custom }) links anonymous visitors to authenticated users. id is required; signed_up_at enables cohort/retention analysis; plan populates the visitor plan field. Stores user ID in localStorage. Also: ripples.getVisitorId() returns the visitor UUID for server-to-server attribution; ripples.reset() on logout forgets the user and starts a new anonymous visitor (tracker v1.6.0+). - [Track Milestones](https://ripples.sh/docs/milestones): Milestones are lifecycle moments a business counts once per person, dated by when the person first reached them and attributed to their first-touch channel: mql, sql, demo_requested, demo_booked, demo_held, lead_captured, email_verified, onboarding_completed, integration_connected, teammate_invited, teammate_joined, invite_sent, invite_accepted, paywall_viewed, checkout_started, notifications_enabled, tracking_authorized. Rule: would you put it on a funnel next to signed up and paid, and count each person once? milestone(). Do people do it repeatedly as part of using the product? track(). Milestones never count as product usage (no activation, retention, usage_count or last seen) and are kept forever. Web (tracker v1.10.0+): ripples.milestone('onboarding_completed', { steps: 4 }), always the browser's own person. PHP: $ripples->milestone('mql', userId: '42', properties: [...], timestamp: $dt, email: null, visitorId: null). Python: ripples.milestone('mql', '42', timestamp=dt, email=None, visitor_id=None, **properties). iOS 0.1.17+: Ripples.shared.milestone('paywall_viewed', properties: [...]). HTTP POST /v1/ingest/batch: { $type: milestone, $name: mql, $user_id: 42, $sent_at: ISO 8601 } plus optional $visitor_id, $email, $event_id, $properties or flat custom keys. Identity: $user_id, else $visitor_id, else $email (a lead with no account, merged into the account when identify() later sends the same email). At least one is required; refused milestones come back in the batch response as rejected: [{event_id, reason}] with reason missing_name, invalid_name (not ^[a-z][a-z0-9_]{0,63}$), reserved_name (built-ins first_visit, signed_up, activated, trial_started, first_paid, churned, and billing events like payment_failed, refunds, renewals) or missing_identity. Send an email only once it is verified. Repeats are stored; reports count each person once, on the day of their first occurrence. Current state (is an SQL now) is a trait: identify(user, { lifecycle_stage: 'sql' }). Ordered funnels (Funnel tab, MCP ripples_funnel with steps) follow people through first_visit, signed_up, activated, first_paid and milestones in order, within a conversion window (default 30 days). - [Preserving Attribution](https://ripples.sh/docs/attribution): First-touch attribution (channel, source, campaign, click IDs) is recorded on the anonymous visitor ID (the _rpl_vid cookie), never on the user. A server-side signup() or identify() must carry that visitor_id, or the user is created on a blank profile and the acquisition source is lost for good. Cross-browser flows break this silently: a Facebook or Instagram ad opens in the in-app browser (visitor A), the confirmation email link opens in Safari or Chrome (new visitor B), so the account must be linked to A. Rule: capture the visitor ID in the browser that submitted the signup form (cookie _rpl_vid on same-site requests, ripples.getVisitorId() otherwise), store it with the pending signup, pass it as visitor_id when the account is created, then call ripples.identify() in the browser after login so the second browser merges into the same person. PHP SDK reads the cookie automatically on web requests (setVisitorId() in queues); Python SDK: set_visitor_id(visitor_id_from_cookies(request.COOKIES)) or visitor_id=; REST: visitor_id field on POST /v1/ingest/signup and /v1/ingest/identify. - [SPA Support](https://ripples.sh/docs/spa): SPA pageviews tracked automatically via history.pushState and popstate listeners. Works with React, Vue, Svelte, Angular, Next.js, Nuxt, SvelteKit, Astro. Manual: ripples.pageview(). Sessions: 30min timeout, per-tab. Web Vitals: LCP, FCP, CLS, INP, TTFB auto-collected. - [Stripe Integration](https://ripples.sh/docs/stripe): Stripe integration auto-tracks charges, subscriptions, invoices, refunds. 3-tier attribution: (1) checkout metadata with ripples_visitor_id, (2) email matching via identify(), (3) Stripe customer ID. Historical backfill on connect. Deduplication built-in. One Stripe account billing several products: list the other products price/product ids under Products on the Stripe card so their payments and MRR stay out of this project. - [Paddle Integration](https://ripples.sh/docs/paddle): Paddle integration auto-tracks transactions, subscriptions, adjustments (refunds/credits). 3-tier attribution: (1) custom_data with ripples_visitor_id, (2) email matching via identify(), (3) Paddle customer ID. Historical backfill on connect. Deduplication built-in. - [PHP SDK](https://ripples.sh/docs/php-sdk): PHP SDK for server-side tracking. Install: composer require ripplesanalytics/ripples-php. Methods: revenue(amount, userId, props), subscription(subscriptionId, userId, status, amount, interval, props), signup(userId, props), track(actionName, userId, props), identify(userId, props), milestone(name, userId?, properties, timestamp?, email?, visitorId?) (a lifecycle moment counted once per person: mql, sql, demo_requested, demo_held, onboarding_completed; userId else visitor cookie else verified email for a lead with no account; see /docs/milestones), group(userId, companyId, traits) (B2B: the user works in that company; their later events count for it with nothing passed per call). Auto-reads RIPPLES_SECRET_KEY from env. Supports self-hosted via RIPPLES_URL. Always pass signed_up_at in identify() calls from server code — if it's the first identify Ripples has seen for that user it becomes a Signup event, and without signed_up_at it's dated 'now' instead of the real signup date. Refunds: negative amount, each with its own transaction_id plus original_transaction_id pointing at the payment. Pass the real timestamp and, for subscriptions, started_at / canceled_at when importing history. Auto-renew off is NOT 'canceled' (which means ended): send the live status (active/trialing) with renews => false and period_ends_at; trials are 'trialing' at the price they will renew at. Send subscription() again on every renewal with the new period_ends_at: each move is recorded as a renewal on the person's timeline. In queue workers call flush() at the end of every job. - [Apple Ads](https://ripples.sh/docs/apple-ads): Apple Ads install attribution + spend. An App Store install carries no referrer or UTM, so without this every Apple Ads install in a webview app is Direct. Send Apple's AdServices answer to Ripples: either (A) your backend resolves the token with Apple and POSTs the JSON to /v1/ingest/attribution with a priv_ key: {user_id, visitor_id (window.ripples.getVisitorId()), attribution: {provider: 'apple_ads', ...Apple's response verbatim}}; or (B) send the raw token and Ripples resolves it: same endpoint with attribution: {provider: 'apple_ads', token} (publishable key allowed), or window.ripples.attribution({ apple_ads_token }) from the webview (tracker v1.5.0+). Batch: {$type: 'attribution', ...}. The install becomes the person's first touch (utm_source=apple_ads, utm_medium=cpt, campaign / ad group / keyword names), channel 'Apple Ads', unless the person arrived earlier through a real source or was first seen more than 30 days before (known user). Connect Apple Ads in Settings > Integrations (key pair generated by Ripples, API user role API Account Read Only or API Account Manager) to sync 90 days of spend nightly. MCP: ripples_apple_ads status | refresh_spend | performance (ROAS, CAC, payback per campaign, ad_group, keyword, search_term); ripples_apple_ads_live (campaigns with dates and serving reasons, tree, lint, impression_share, product_pages); ripples_apple_ads_manage when writes are on (status, budget, bids, dates, Search Match, targeting, keywords, negatives, create/clone ad groups and campaigns created paused, set_ad, spend guards), every call a dry run until confirm:true. Developer Mode sample payloads are recorded as test and never applied. No ATT prompt needed. - [Python SDK](https://ripples.sh/docs/python-sdk): Python SDK for server-side tracking. Install: pip install ripples. Methods: revenue(amount, user_id, **props), subscription(subscription_id, user_id, status, amount, interval, **props), signup(user_id, **props), track(action_name, user_id, **props), identify(user_id, **props), milestone(name, user_id=None, *, email=None, visitor_id=None, timestamp=None, **properties) (a lifecycle moment counted once per person: mql, sql, demo_requested, demo_held, onboarding_completed; user_id else bound visitor else verified email for a lead with no account; see /docs/milestones), group(user_id, company_id, **traits) (B2B: the user works in that company; their later events count for it with nothing passed per call). Auto-reads RIPPLES_SECRET_KEY from env. Supports self-hosted via RIPPLES_URL. Always pass signed_up_at in identify() calls from server code — if it's the first identify Ripples has seen for that user it becomes a Signup event, and without signed_up_at it's dated 'now' instead of the real signup date. Refunds: negative amount, each with its own transaction_id plus original_transaction_id pointing at the payment. Pass the real timestamp and, for subscriptions, started_at / canceled_at when importing history. Auto-renew off is NOT 'canceled' (which means ended): send the live status (active/trialing) with renews=False and period_ends_at; trials are 'trialing' at the price they will renew at. Send subscription() again on every renewal with the new period_ends_at: each move is recorded as a renewal on the person's timeline. In queue workers call flush() at the end of every job. - [iOS SDK](https://ripples.sh/docs/ios-sdk): iOS / macOS / tvOS / watchOS SDK for client-side tracking. Install via Swift Package Manager: https://github.com/RipplesMetrics/ripples-ios. Initialize with Ripples.setup(RipplesConfig(projectToken:)). Methods: identify(_:traits:), track(_:area:properties:userProperties:), screen(_:area:properties:), milestone(_:properties:) (0.1.17+: a lifecycle moment counted once per person, e.g. onboarding_completed, paywall_viewed, notifications_enabled; see /docs/milestones), group(_:traits:) (sticky B2B company sent as $company_id on later events), resetGroup(), flush(). SwiftUI .trackScreen() modifier. Takes the public project token (UUID), never the priv_ secret key — revenue events from the token are rejected server-side. Persistent visitor ID, 30-min session rotation, offline queueing, exponential backoff. - [Traffic quality and fraud detection](https://ripples.sh/docs/traffic-quality): Ripples Metrics scores every pageview on the server for signs of automation, producing a bot score on a 0 to 100 scale (0 nothing found, 20 Unusual, 45 Suspect, 60 Automated) that is shown for every visitor and pageview across the product. Proof signals (a browser contradicting its own engine, WebDriver, automation framework globals) are worth 60 to 70 points and are the only way to reach Automated. Hints (datacenter network, device clock vs IP location, VPN or Tor, headless window geometry, one device build posing as many visitors) are worth 5 to 25 and top out at Suspect. Each visitor is judged on their worst pageview: Looks human (under 20), Unusual (20 to 44, hints only), Suspect (45+ from hints, or a proof signal on a visit with a referrer, UTM tags, a second page or mouse movement), Automated (a proof signal on any other visit), Crawler (the user agent names a robot). Crawler and Automated are always removed. Suspect and Datacenter connections are optional filters in Settings, Traffic filtering, applied to new traffic only. Signed-in users, paid clicks (gclid, fbclid, ttclid, msclkid and others), identify, track and revenue events, server SDK events and devices marked as real are never removed; signed-in users and paid clicks are still scored for reporting. The Traffic quality section on Pulse reads a campaign, source or channel as Clean, Mixed, Low or Junk from the verdict mix, bounce and signup gaps against the rest of the project, and visitors per device build. Removed visits stay in Recently removed for 30 days. No blocking, no third-party reputation scores, no canvas or audio fingerprinting. - [Delete user data (GDPR, CCPA)](https://ripples.sh/docs/privacy): GDPR/CCPA erasure. POST https://api.ripples.sh/v1/privacy/deletions with Authorization: Bearer priv_ (secret key only; publishable token gets 403) and JSON {user_ids?: [string], visitor_ids?: [uuid], emails?: [string], requester?: string}; at least one id, at most 100 ids in total per request. Returns 202 {id, status: pending, user_ids, visitor_ids, emails, requester, profiles_deleted, created_at, profiles_deleted_at, completed_at}. Each id is expanded to the whole person (all their devices, duplicate rows, server-side events). Profile, traits, subscriptions and install attributions are erased within about a minute (status processing); events, sessions, web vitals and filtered bot hits in the nightly run (status completed, within 24 hours). Rows carrying a different user_id are never deleted through a visitor_id. GET /v1/privacy/deletions (?status=, ?limit= up to 100) lists requests; GET /v1/privacy/deletions/{id} shows one. Deletion does not block future tracking: stop sending events for the person. Browser (tracker v1.6.0+): ripples.reset() on logout forgets the user and starts a new anonymous visitor; ripples.optOut() erases the _rpl_ cookies and storage and stops all tracking on that browser (remembered in _rpl_optout); ripples.optIn() undoes it; ripples.hasOptedOut() returns a boolean. ## Product - [Ripples Metrics](https://ripples.sh/): Analytics for founders: traffic, search, ad spend, revenue and retention joined on one screen per product, and one across all of them. - [About Ripples Metrics](https://ripples.sh/about): Who makes Ripples Metrics, what it is, where it lives on the web, and what it is not: not Ripples Nigeria's RipplesMetrics, not the "ripple metrics" impact framework, not Ripple (XRP). - [Pricing](https://ripples.sh/pricing): Free until $1K MRR, then $29/month for one project or $49 for ten. Every feature on every plan. - [What Ripples doesn't do](https://ripples.sh/what-we-dont-do): The deliberate limitations: no session replay, heatmaps, feature flags, A/B tests, self-hosting, SQL access, Meta Ads or SSO, and what to use instead. - [MCP server](https://ripples.sh/mcp-server): Connect Ripples to Claude, Claude Code or Cursor and ask about your traffic, channels, revenue and retention in your own words. Read-only, OAuth, free on every plan. ## Comparisons - [Ripples vs Google Analytics](https://ripples.sh/vs/google-analytics): The default, and free. Built for marketing teams who have someone to configure it. - [Ripples vs Plausible](https://ripples.sh/vs/plausible): The privacy-first standard. Beautiful, open source, EU-hosted, traffic only. - [Ripples vs Fathom Analytics](https://ripples.sh/vs/fathom): Simple, fast, privacy-first, no free plan. The most opinionated tool in the category. - [Ripples vs DataFast](https://ripples.sh/vs/datafast): The closest competitor. Revenue-first analytics for indie founders, Meta ads only. - [Ripples vs PostHog](https://ripples.sh/vs/posthog): The everything platform. Replay, flags, experiments, warehouse, and a large free tier. - [Ripples vs Umami](https://ripples.sh/vs/umami): Free, open source and self-hostable, with a real free cloud tier and a fast-growing feature list. - [9 Google Analytics alternatives](https://ripples.sh/alternatives/google-analytics): Nine tools compared for solo founders, with real prices and the honest reason to pick each one. ## Free tools - [UTM builder](https://ripples.sh/tools/utm-builder): Build tagged campaign URLs that will not break your reporting. Presets for Reddit, Google Ads, newsletters and the rest. - [CAC payback period calculator](https://ripples.sh/tools/cac-payback-calculator): How many months until a channel has returned what it cost, once churn is taken into account. The number ROAS does not give you. - [LTV:CAC ratio calculator](https://ripples.sh/tools/ltv-cac-calculator): Lifetime value against acquisition cost, with the ratio read out in plain language instead of left as a number. - [ROAS calculator](https://ripples.sh/tools/roas-calculator): Return on ad spend, break-even ROAS from your gross margin, and cost per acquisition. Three numbers, one form. - [Retention curve calculator](https://ripples.sh/tools/retention-curve): Paste your cohort counts, get the curve, and find out whether it flattens or keeps falling. No other free tool does this. ## Articles - [How Much of Your Traffic Is Bots? Ours 70%](https://ripples.sh/blog/how-much-of-your-traffic-is-bots): 30 days of our own analytics: 145 of 208 direct visitors (70%) loaded one page once and never came back. Under a third were people. Five checks to run. - [What Eight Products' Analytics Look Like](https://ripples.sh/blog/eight-products-real-analytics-numbers): Thirty days of unedited numbers from eight products in one portfolio. Signup conversion ranges from 0.1% to 62%, and the spread is not about funnels. - [7 Best DataFast Alternatives in 2026 (With Real Prices)](https://ripples.sh/blog/best-datafast-alternatives): Seven tools that do roughly what DataFast does, compared on price, free tier, ad platform coverage and retention. Prices checked August 2026, no affiliate links, and a note on why most DataFast reviews you will find are paid for. - [How to Connect Stripe to Google Analytics (And Why It Still Will Not Tell You What You Need)](https://ripples.sh/blog/connect-stripe-to-google-analytics): The working method, with code: capture the GA4 client_id, carry it through Stripe Checkout, and post purchases back via the Measurement Protocol. Then the four reasons this still will not tell you whether a channel paid back. - [Google Ads for Micro-SaaS: What $2,000 of Spend Tells You About Payback](https://ripples.sh/blog/google-ads-micro-saas-payback): A worked $2,000 Google Ads test on a $29/mo product, month by month. Why first-month ROAS reads like a disaster when the spend is fine, and why the blended payback number hid a 4-month winner inside a 17-month loser. - [CAC Payback Period: How to Calculate It When You Are Pre-$10K MRR](https://ripples.sh/blog/cac-payback-period): The formula, the churn correction most versions leave out, and the condition under which a channel never pays back at all. Plus the four ways the standard calculation misleads you at small scale. - [Why Your Analytics Says 200 Visitors and Stripe Says 2 Customers](https://ripples.sh/blog/analytics-visitors-vs-stripe-customers): Eight reasons the two numbers disagree, ordered by how much damage each one does, and a diagnostic sequence for working out which one is yours. Most of the gap is arithmetic, not a tracking bug. - [How to Choose a Google Analytics Alternative (A Decision Guide for Solo Founders)](https://ripples.sh/blog/choose-google-analytics-alternative): Twenty-two tools do roughly the same thing, so the list is not the hard part. Five questions that narrow it to one or two, what you actually lose when you leave GA4, and how to switch without losing a year of history. - [Plausible vs Fathom vs Simple Analytics: An Honest Comparison](https://ripples.sh/blog/plausible-vs-fathom-vs-simple-analytics): Three privacy-first analytics tools that look nearly identical on their pricing pages. The four differences that actually decide it, with real prices checked August 2026, from a company that does not sell any of them. - [PostHog's Free Tier: What It Actually Costs Once You Grow](https://ripples.sh/blog/posthog-free-tier-real-cost): PostHog gives away 1M events, 5,000 session recordings and 1M feature flag requests a month. Here is the arithmetic on where that runs out, which product generates the bill (it is not the one you expect), and the setting that keeps it near zero. - [5 Best Fathom Analytics Alternatives 2026](https://ripples.sh/blog/best-fathom-analytics-alternatives): Fathom is $15 a month with no free plan, which is the reason most people go looking. Five alternatives that keep what made Fathom good, with real prices checked August 2026 and no affiliate links. - [Which Marketing Channel Actually Brings You Paying Customers?](https://ripples.sh/blog/which-marketing-channel-brings-paying-customers): Traffic by source is the wrong report. The right one has five columns, ends in payback, and usually reveals that your biggest channel is your worst. How to build it, and the three things that break it. ## Full documentation - [/llms-full.txt](https://ripples.sh/llms-full.txt): Complete documentation in markdown