There is a current need of using React / Redux along Convert to create AB experiments and experiences.
In Convert we have studied how to make React / Redux along. Following is described a method that we have tested and verified working.
The method recommended here will prevent you from needing to rebuild the application every time you deploy an AB test or personalization.
However, there are some caveats on using it.
- You can not utilize the Visual Editor WYSIWYG features.
- Testing and deployment of personalizations has to be done by developers.
When running one experiment at a time
The convertHook() should include all your changes in the following way:
The convertHook, can be used when you dont want to edit your React / Redux modules.
Here is an example how this function needs to be called within your React app. In this case in the App.js file.
This method is not compatible when running multiple experiments at the same time. But, you will not need to change the code modules every time you launch a new experiment.
When running multiple experiments at the same time
In this option, you will have to edit your modules to call each experiment specifically using code similar to the following:
window._conv_q = window._conv_q || ;
You can find more information how this code works here.
The modules would look like the following:
This method, however, will require that you edit your modules every time you implement a new test, but allows you to run multiple experiments at the same time.
Launching the experiments
You can find the different methods available to you to launch experiments within your React in the following Single Page Apps article.