In VWO, you can configure the Custom URL in the following three ways:
Using vis_opt_url Variable
This method allows you to define a variable where a dummy URL is defined. This dummy URL need not exist in reality. It is used only to execute tests that are set up to run on that dummy URL or a pattern of dummy URLs.
Using the virtualPageUrl API
The virtualURL API allows VWO to load the new URLs when:
- All session Recordings, Heatmap, Goals, and Funnels are tracked on the new page.
- The code will execute again after checking URL eligibility, segment conditions, and other campaign settings.
- All changes will apply again for the selected variations.
To learn more about virtualPageUrl API and how to configure it, refer to How to Use VWO for Single Page Applications.
Using the customUrl API
Using Custom URLs you can set up imaginary URLs to find and remember specific sections or pages of the website. Custom URLs allow you to track multiple pages of your website even if the website pages do not have a consistent pattern.
To learn more about customUrl API and how to configure it, refer to How to Use VWO for Single Page Applications.
NOTE: Code will only work with the existing campaigns on the page and no
new campaigns can be fetched using a new URL. To provide custom URL and
fetch campaign details with the new URL, use the virtualURL API mentioned
in the previous section.