Setup
- Create an account in Posthog and get your posthog client key. It should look something like:
phc_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - Update the posthog client key in the following places:
- Setup Stripe test environment and setup Supabase local development
- Run a local version and simulate the following events
user signs in-> login to the applicationuser signs up-> sign up for the applicationuser starts checkout-> Craft your checkout url (e.g.localhost:XXXXX/payments?price=price_XXXXX)which will create a checkout sesssion but in localhost.user completes checkout-> complete the checkout
- Go to Posthog dashboard > Activity and see if the events are populated