Hi everyone, I hope you're all doing well. I have ...
# ask-questions
c
Hi everyone, I hope you're all doing well. I have a question about using the fallback attribute in a JavaScript SDK. I've enabled the fallback attribute toggle, but I'm unsure what the next steps are. Could someone explain what I need to do after turning it on?
h
Fallback attributes are defined when you create new experiments. Also accessable via Overview (tab) > Targeting and Traffic. So instead of just using an id field like
sessionId
as your hashAttribute, you can also provide an alternate id such as
anonymousId
in case the user does not have their primary hashAttribute.
c
is there any update I have to do into code? @happy-autumn-40938
h
Yes, you'll need to (1) ensure a StickyBucketService is implemented and (2) ensure both attributes can be passed into the SDK. https://docs.growthbook.io/app/sticky-bucketing#setting-up-sticky-bucketing
🙌 1