PostHog + Sveltekit

Github Repo

Cookie/User Identity

{
  "sessionToken": "2462cbdb-7e22-41fc-a5d1-16342ec3a5b9",
  "userId": "6ea0f19d-77cc-47bb-8a4e-37cb1f140098",
  "posthogId": "6ea0f19d-77cc-47bb-8a4e-37cb1f140098"
}

Server Request to PostHog API /decide

{
  "experimentServer": "control",
  "experimentMultivariate": "control",
  "flagIsEnabled": true,
  "flagIsToggle": false,
  "experimentComponent": "control"
}

Subscribed Feature Flag Store

{
  "experimentServer": "control",
  "experimentMultivariate": "control",
  "flagIsEnabled": true,
  "flagIsToggle": false,
  "experimentComponent": "control"
}