Hi! I'm experimenting with using the optimizly sdk...
# contributing
m
Hi! I'm experimenting with using the optimizly sdk's with Growthbook. It looks quite straight forward. One basically needs a function that transforms growthbook config to an optimizely datafile. 1. Have anyone of you explored this idea before? Any gotchas to be aware of with this approach? 2. Currently, only overrides are exposed through the Growhtbook api. The optimizely datafile format requires more information than that, so currently I've just "hacked" the regular api by manually crafting an jwt token the same way the js app does, and uses the
/exeriments
endpoint to get all experiment configuration needed in one request. Would it be possible to add an
/experiments
endpoint that could be accessed with the api key one can generate in the UI?
f
I'd love to learn more about your use case. Are you wanting to use Optimizelys visual editor but use GrowthBook for documentation and analysis? Or something else?
m
We just want to use their sdk's, basically
f
how would that work exactly? Would you define the same experiment in both Optimizely and GrowthBook?
m
No, so we are not customers of optimizely. But their sdk's are pretty mature, have good documentation and are already supported on all the platforms we need, including mobile apps. So we want to explore if we could simply just use their sdk's with growthbook instead. And it seems pretty doable, actually.
And technically it works by transforming the Growthbook config to a optimizely datafile. The sdk is initialized with this, does it's stuff, and then the event dispatcher, which can be overridden, posts the assignment to our in-house tracking solution (snowplow) instead of optimizely.
f
Ok, interesting. I wasn't aware you could overwrite their event dispatcher. I found an example datafile at https://docs.developers.optimizely.com/full-stack/docs/example-datafile . Is that what you're using as reference?
m
yes, that's the one. Currently i'm just hacking together and endpoint that fetches the config from growthbook and serves a file like that instead.
f
which fields are you missing from the overrides endpoint? I could see us potentially adding a public
/datafile
endpoint that outputs code using that format
m
That would be awesome! Actually, I think only the variation names are the ones missing, as I'm aware of now.