Closed eyeamkd closed 1 month ago
This is how a base variant of the library should look
Experiments are to be seen as Questions that users want to be answered Variants can be seen as different options that users have for that questions KeyAction can be seen as the end result/aim that users want to track as an answer for that Question
<Provider backendUrl ="canBeANyUrl">
<Experiment fgkf>
<Variant >
</ Variant>
<Variant />
</Experiment>
<Experiment>
<Variant id="dfdfd">
<KeyAction>
<BuyNowButtonV1 />
</KeyAction>
</Variant>
<Variant>
<Goal>
<BuyNowButtonV2 />
</Goal>
</Variant>
</Expeiment>
<Experiment>
<Variant />
<Variant />
</Experiment>
<KeyAction>
<BuyNowButton />
</KeyAction>
<KeyAction>
<BookACall />
</KeyAction>
</Provider />
Scope package v0.0.1 :
Experiment component
Variant component
Provider component that will push the experiments data in its component tree to any url provided in its config on evey render
For testing we use dummy api https://webhook.site/