0

I'm searching a solution to trigger A/B test in VWO via java script only for a special group of users. I've already found something like this:

   Define Custom Visitor Segments -> Others -> JavaScript variable.

It allows to define some condition in js and decides to run A/B test for a specific user who passes through that JavaScript condition.

Is it the best way?

Franz
  • 13
  • 6

1 Answers1

1

Yes, you can use the JS variable segmentation to define the JS within it and write the logic to evaluate a condition. However, you need to make sure that all the JS variables that are being used to evaluate the JS must be available before the VWO code.

In case the JS variables are coming late on the page then you can go with the feature called Manual Activation which will allow firing AB test on any event on the website.

Eshan
  • 3,647
  • 1
  • 11
  • 14