How Do I Add Analytics to My App?
You built your app with Claude, ChatGPT, Bolt, or Lovable and it is live. People might be using it. But you have no idea how many, which parts they use, where…
You built your app with Claude, ChatGPT, Bolt, or Lovable and it is live. People might be using it. But you have no idea how many, which parts they use, where they drop off, or where they come from. Adding analytics means you can see exactly who is visiting, what they do, and what is working. Here is how to add analytics to your app in about fifteen minutes, without writing any meaningful code.
What Analytics Actually Tells You
Without analytics, you are flying blind. With it, you can see:
- How many people visit your app each day, week, and month
- Where visitors come from (Google, direct links, social media)
- Which pages they visit and in what order
- Where they leave
- How long they spend on each page
- Whether they complete key actions like signing up or making a purchase
This is not just nice to know. It is the feedback loop that tells you what to build next, which features to improve, and whether your app is actually solving the problem you built it for.
The Three Best Analytics Options for Vibe Coders
Google Analytics 4 (GA4) is the most widely used analytics tool in the world. Free, powerful, and integrates with Google Search Console. The downside is that it requires cookie consent banners in many jurisdictions due to privacy regulations, and its interface can feel overwhelming at first.
Plausible Analytics is the simplest and most privacy-friendly option. No cookies required, no consent banner needed, GDPR compliant by default. The dashboard shows you exactly what you need without overwhelming complexity. Paid from $9/month but the simplicity is worth it for most vibe coders who just want clear answers.
PostHog is the best option if you want both analytics and the ability to understand how individual users behave in your app. Free tier is generous. Shows session recordings, feature usage, and funnel analysis. More complex than Plausible but more powerful.
For most vibe coders starting out: Plausible if you want simple and clean, Google Analytics if you want free and comprehensive.
How to Add Google Analytics in Five Minutes
- Go to analytics.google.com and create a free account
- Create a new property for your app
- Get your Measurement ID, which looks like G-XXXXXXXXXX
- Ask your AI: “Can you add Google Analytics 4 to my app? My Measurement ID is G-XXXXXXXXXX. Add the tracking script to every page of my app.”
Your AI will add the tracking code. Once deployed, Google Analytics starts collecting data immediately. You will see your first visitors within a few hours.
How to Add Plausible
- Create an account at plausible.io
- Add your domain
- Get the tracking script snippet from Plausible
- Ask your AI: “Can you add this Plausible analytics script to the head section of every page of my app? Here is the script: [paste it]”
Plausible does not use cookies, so no consent banner is needed. Data starts appearing in your dashboard immediately after deployment.
What to Track Beyond Page Views
Basic page view tracking tells you who is visiting. Event tracking tells you what they are doing.
Key things worth tracking in most apps:
- Button clicks on important actions
- Form submissions
- Sign-ups and logins
- Errors encountered
Ask your AI: “Can you add event tracking for the following user actions in my app: [list the actions]. Use the analytics tool I have already installed.”
The One Thing to Remember
Analytics shows you who is using your app and what they do. Plausible is the simplest option with no cookies required. Google Analytics is free and powerful. Either takes fifteen minutes to add. Once you have it, you stop guessing about what your users want and start knowing.
Want your analytics-enabled app running reliably in the cloud? → Snapdock
New here? These might help: Your app is live. Now what? What nobody tells you after launch. → How do I get my app to show up in Google search? →