Data sources

Every product gets its analytics from one source. Visitors, Usage and Realtime read the same numbers whichever you pick, so the pages look the same.

SourceWhat it means
MRRocket tracking codeWe collect. The SDK in your app sends events to MRRocket, cookieless by default.
PostHogYou already use PostHog. MRRocket reads your project every hour; nothing is installed.
No data sourceA new product before you choose. The pages say Plug in a data source.

A chip beside the product picker says where the numbers on a page come from. (The demo workspace adds Sample data, for its invented demo products.)

Choose a source#

Open Settings › Products, pick the product, then Users, money and costs. The same choice is the Install tracking step of the setup checklist and the Tracking code step of Add product. A product without a source switches to the tracking code by itself when its first event arrives.

MRRocket tracking code#

  1. Let your AI install it#

    Copy for AI agent copies one complete prompt for Claude Code, Cursor or Codex, with your public key only. Or pick what you are adding it to (a Next.js app, any website with a <head>, or a React Native / Expo app) and copy the snippets yourself. See Tracking and events.

  2. Deploy and check#

    Deploy your site and open it in a browser. The card shows how many events arrived in the last 24 hours and the newest ones. Events from your own computer (localhost) count as a working install too. A curl test proves the key works but does not count as a visit.

  3. Read the numbers#

    Within a minute the events show in Visitors: visitors, page views, bounce rate, session time, sources, pages, countries, devices, campaigns, goals, and signups, checkouts and purchases from events named signup, checkout and purchase. Usage lists every event, the people you identify(), and a funnel and day 1, 7 and 30 retention on the Dashboards tab.

In the default cookieless mode a visitor gets a new id every day, so retention counts only people you identify() or sites that use consent="cookies". Raw events are kept 90 days; the daily numbers stay.

PostHog#

  1. Create a PostHog key [#create-a-posthog-key]#

    In PostHog open Settings › Account › Personal API keys and create a key with the scopes query:read and project:read, limited to the project you want to connect. Copy it; PostHog shows it once. The project ID is the number in your project's URL, for example 12345 in us.posthog.com/project/12345.

  2. Connect#

    Choose PostHog on the card, pick US cloud, EU cloud or Self-hosted (then enter your URL), and fill in the project ID and the key. Test connection checks all three without saving. Save stores the key encrypted and starts the first sync of 30 days.

  3. Keep it fresh#

    MRRocket syncs again when a page is opened and the data is older than an hour. Sync now pulls the last 7 days at once. Disconnect deletes the key and everything PostHog brought in.

The sync reads daily visitors, page views, sessions, bounce rate and session length, top pages, entry and exit pages, referrers and channels, countries, regions and cities, browsers, operating systems and devices, UTM campaigns and terms, and the list of your events. People, funnels and retention are not synced from PostHog yet.

The key never reaches your browser again: the card shows it masked (phx_...abcd). It is stored encrypted (AES-256-GCM).

The PostHog connector is tested against a local stand-in that answers like PostHog's query API. The first check with a real PostHog project is still pending. If a sync fails, the card shows PostHog's reason (wrong key, missing scope, unknown project, rate limit).

Good to know#

  • Recordings and Click maps need the tracking code (0.2.0 or later); PostHog does not feed them.
  • Money comes from your revenue sources, not from analytics, and shows on Revenue and Results. The revenue beside visitors on Visitors is not filled from them yet.
  • People, funnels and retention in Usage are counted from tracking-code events; PostHog does not sync them yet.