In order to run your A/B test or personalization successful on dynamic pages built with frameworks like REACT or Angular you need to turn on our Single page application alternatives in the audience.
Executes when the page loads. This is the default and works great as long as you are not running a Single Page Application.
On load & URL change:
This is our automatic way of handling Single Page Applications.
The ”On load & URL change” works great most of the time but sometimes it takes a while after URL has changed until the new content is loaded. Then it might be better to make a callback to SiteGainer from the app when new content is loaded. This is done by using the code sitegainer.newPage();.