PostHog + Sveltekit

Github Repo

Cookie/User Identity

{
  "sessionToken": "47467799-ad73-4a0f-b2f4-1e594a2b1cb8",
  "userId": "4f6f5415-9a7b-4384-bfa1-733abc58d197",
  "posthogId": "4f6f5415-9a7b-4384-bfa1-733abc58d197"
}

Server Request to PostHog API /decide

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

Subscribed Feature Flag Store

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