Talk to a sales representative

+1 844-822-8378

Write to us

How can I create an A/B test on pages created by AJAX?

Posted in Use Cases on

Changes made using the VWO editor are not applied to elements which are loaded using Ajax or Javascript later on the page. In such cases where the element comes to the page after DOM ready, you need to create a test using jQuery. You can use the add JS/CSS functionality inside the editor to create tests using JS/jQuery and CSS. You should make sure that changes made using JS/jQuery and/or CSS are applied only after the element loads on the page.