PostHog + Sveltekit

Github Repo

Cookie/User Identity

{
  "sessionToken": "33065189-f979-4a67-89e7-348c57d4756e",
  "userId": "a225cf2f-6153-481c-a0e2-f826a68fc44e",
  "posthogId": "a225cf2f-6153-481c-a0e2-f826a68fc44e"
}

Server Request to PostHog API /decide

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

Subscribed Feature Flag Store

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