Skip to main content

Analytics (Posthog)

Setup

  1. Create an account in Posthog and get your posthog client key. It should look something like: phc_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  2. Update the posthog client key in the following places:
    1. flutter/web/index.html
    2. flutter/ios/Runner/Info.plist
    3. flutter/macos/Runner/Info.plist
    4. flutter/android/app/src/main/AndroidManifest.xml
  3. Setup Stripe test environment and setup Supabase local development
  4. Run a local version and simulate the following events
    1. user signs in -> login to the application
    2. user signs up -> sign up for the application
    3. user starts checkout -> Craft your checkout url (e.g. localhost:XXXXX/payments?price=price_XXXXX) which will create a checkout sesssion but in localhost.
    4. user completes checkout -> complete the checkout
  5. Go to Posthog dashboard > Activity and see if the events are populated

Capture Basic Analytics

Here are 3 basic metrics you want to measure: Retention, Conversion, DAUs, and Revenue. This will give you a good overview on how your product is fairing overtime. It is highly recommended to have product analytics so you are informed on how well the product is doing. For revenue related metrics use the Stripe dashboard

For more advice on what sort of metrics to measure and when to add more, watch this video by YC.

  1. Create a new dashboard
  2. Add DAUs graph to dashboard

  1. Add conversion graph to dashboard

  1. Add retention graph to dashboard