adamant-library-21370
12/03/2024, 11:30 AMtrackingCallback
or gb.getDeferredTrackingCalls()
, the challenge arises when we’re streaming components, as we don’t always have access to cookies to store user information (albeit we could use redis or some other system).
Is there an API call or another approach I might be missing to retrieve this information directly?
For now, I’ve worked around it by passing the info to the client and handling it client-side in the browser, but I’m curious if there’s a more robust solution.
My goal is to have access to which variations and feature flags have been seen by a user so i can pass it to various api calls / tracking.
I hope that makes sense and thanks in advance for any advice!strong-mouse-55694
12/03/2024, 5:06 PMadamant-library-21370
12/03/2024, 5:55 PMadamant-library-21370
12/03/2024, 5:56 PMstrong-mouse-55694
12/03/2024, 6:07 PMgb.evalFeature("headline-cta")
). That'll show you the resolved value and other info. I think that might provide the info you need. Lmk! https://docs.growthbook.io/lib/js#evalfeatureadamant-library-21370
12/03/2024, 6:14 PMadamant-library-21370
12/03/2024, 6:15 PMstrong-mouse-55694
12/03/2024, 7:44 PMonFeatureUsage
callback available with our SDK. Depending on your setup, you could use that to either log those events locally or in a db. However, there may be other options, too. Can you share what the goal is with a particular flow?adamant-library-21370
12/04/2024, 6:45 AMstrong-mouse-55694
12/04/2024, 5:30 PMadamant-library-21370
12/04/2024, 5:33 PM