Hi team,
How should I set up an experiment for 2 different platforms - Web and App (mobile) if we've implemented Sticky Bucketing and I want users to have the same variant in both platforms? Should I create 2 experiments and tie them somehow or should it be just 1 experiment with both platforms?
h
happy-autumn-40938
04/04/2024, 5:17 PM
Sticky bucketing across devices is a challenge, and would only work for logged in users with a consistent
userId
. Assuming both devices use a JavaScript or React SDK, you would need to create a custom
StickyBucketService
that connects to a shared datastore such as Redis.
We have some example networked sticky bucketing drivers for Redis, Cookies, etc available in our JS SDK, but you may need to stitch a few different solutions together to get them to sync up across devices
happy-autumn-40938
04/04/2024, 5:18 PM
If you're using the GrowthBook proxy and want to use "Remote Evaluation", then you can implement our prebuilt Redis driver for Remote Eval Sticky Bucketing and share it across both devices.
happy-autumn-40938
04/04/2024, 5:42 PM
Sorry, just realized I wasn't clear about your original question. I'd make it a single experiment if possible, otherwise sticky bucketing across experiments can't be applied.
s
stale-helmet-93528
04/09/2024, 10:18 AM
@happy-autumn-40938 hi , I understand that if we want users to have the same variant on both platforms, integrating StickyBucketing only with local frontend storages (LocalStorage for web and AsyncStorage for applications) will not work, correct?
h
happy-autumn-40938
04/09/2024, 4:47 PM
Correct. You'd probably want to use BrowserCookieStickyBucketService on the front end and ExpressCookieStickyBucketService on the backend (node). You could also rig your own service to use a combination of cookies and permanent storage (cookies + redis for example) on the backend if desired