Can't see changed text on variations preview
I have an A/B test and the snippet installed on my page but the changes I made are not being displayed.
I've downloaded the Google Optimize plugin which says that I'm previewing the variant but, the changes are not visible.
Things I've tried:
I thought Optimize was getting triggered too early, as I use React to render my page, the DOM node that needed to be modified might not be there, so I changed the experiment to run on a trigger and added a trigger in the page's componentDidMount method (using
I also tried moving the optimize snippet to after my page rendering script.
I have tried debugging in the browser, pausing the script at the point I run the trigger for optimize, and the dom tree appears just fine. I can even modify and replace the text manually there and have it persist.
Any help would be greatly appreciated!