Learn
Observability

How to See Who Is Using My Replit App

Add PostHog (free, 1M events/month) to your Replit app for comprehensive analytics. If your app uses Replit Auth, query your database to see registered users directly. Replit does not provide built-in user analytics, so a third-party tool is essential for understanding who uses your app and how they use it.

Why this matters

Replit makes it easy to build and deploy, but it provides no built-in analytics for understanding your users. Without analytics, you are making product decisions based on guesses. Adding analytics to a Replit app takes one prompt to the Replit Agent and gives you data that transforms how you iterate.

What's at stake

Replit Agent can build features fast, but building the wrong features fast is a waste of credits and time. Analytics tells you what to build next, what to fix first, and whether your changes actually improved the user experience.

Step by step.

1

Add PostHog to your Replit app

Ask the Replit Agent to add PostHog analytics to your app. Provide your PostHog project API key. PostHog auto-captures page views, clicks, and form submissions. For Replit apps using Python backends, PostHog also has a Python SDK for server-side event tracking.

import posthog from "posthog-js";

posthog.init("YOUR_POSTHOG_KEY", {
  api_host: "https://us.i.posthog.com",
  autocapture: true,
});
2

Query your Replit Auth data

If your app uses Replit Auth (zero-setup, launched May 2025), your database stores user session data. Query your users table to see who has logged in, when they last visited, and how often they return. This gives you registered user data without any extra tools.

3

Track key actions with custom events

Identify the 3-5 most important user actions in your app. Ask the Replit Agent to add PostHog event tracking for these. For example, track "project_created," "payment_completed," or "export_downloaded." This shows you not just visitors, but engaged users.

4

Set up funnels and retention

In PostHog, create a funnel showing: Visit → Signup → First Key Action → Return Visit. This reveals where you lose users. If many people visit but few sign up, your landing page needs work. If many sign up but few use the core feature, your onboarding needs improvement.

5

Use session replay to find UX problems

PostHog session replay lets you watch real users navigate your Replit app. This is especially valuable for Replit apps where the Agent built the UI — you can see if the AI-generated interface actually makes sense to real people or if users get confused.

See exactly who uses your Replit app and what they actually need

  • User analytics showing real engagement with your Replit-built app
  • Feature usage tracking to guide your next Agent prompt
  • Session replay to verify the AI-generated UI works for real users
Get started with BWORLDS

Frequently asked questions.

No. Replit provides credit usage tracking and basic deployment status, but no user analytics. You need a third-party tool like PostHog to see who visits your app, what they do, and where they drop off.

Yes, but PostHog is a better choice for most builders. PostHog is simpler to configure, offers cookieless tracking (no consent banner needed), includes free session replay, and provides a more generous free tier. Google Analytics is more complex and raises privacy concerns.

Replit Auth provides user identity (who logged in) but not behavior analytics (what they did). You know who your users are, but not how they use your app. Combine Replit Auth data with PostHog for a complete picture.

PostHog has both JavaScript and Python SDKs. Use the JavaScript SDK for frontend tracking (page views, clicks) and the Python SDK for server-side tracking (API calls, background jobs). Ask the Replit Agent to install both.