PostHog + Sveltekit

Github Repo

Cookie/User Identity

{
  "sessionToken": "f6eee600-1190-4d3b-8b27-17cf828532d8",
  "userId": "76a62c3c-1dbb-40ad-a815-eb4c94fe6102",
  "posthogId": "76a62c3c-1dbb-40ad-a815-eb4c94fe6102"
}

Server Request to PostHog API /decide

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

Subscribed Feature Flag Store

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