Skip to main content

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