https://www.growthbook.io/ logo
m

microscopic-laptop-4151

09/12/2023, 12:39 PM
hey guys, is this possible to set up an AB test that would work as a redirect between 2 URLs? so I don't have to use the Visual Editor?
👀 1
b

billions-xylophone-11752

09/12/2023, 1:44 PM
Hey, Bart. Split URL testing is possible to do with GrowthBook, but we don’t have something as simple as a ‘url’ type, as there can be complications with this. The implementation will differ depending on your stack, but you'd essentially just need to get the feature value, and then redirect based on which variation the user is bucketed into. Something like:
Copy code
if (gb.isOn("my-feature)) {
   window.location = SOME_URL
}