Why Self-host the Test Files
For such self-hosting websites, the VWO servers only register visits and conversions. Typically, self-hosting is more relevant if VWO Content Delivery Network (CDN) does not have a node in or near your country.
- Log in to your VWO account.
- Go to TEST and create a test(A/B, Multivariate, or Split URL).
- To download the files that you need to host, click Finish. If you have enabled the self-hosting option, the following files appear on the Campaign Created Successfully page:
b. vwo_test_1.js, where the number denotes the number of tests
ATTENTION: This file is unique for each test you create. You must download the file for every test you want to host on your server.
- Before starting the test, upload the files to your server.
- Download the same files again and upload them to servers every time you update the test.
Few things to Consider
- The Geo-targeting functionality will not work if you have opted to self-host your test files. Self-hosted files do not interact with VWO servers, and therefore geo-targeting the test will not be possible.
- You cannot run a test across multiple domains if you have opted to self-host your test files.
- The self-hosting test files option is supported only for the VWO test. Insights (including Analyze and Track) functionalities are not supported.
- You cannot set up or use a Custom URL when you are self-hosting the test files.
- Live previews option does not work for tests where self-hosting is enabled.
Enabling Self-Hosting Option for an Existing Test
For an existing test, you can enable the option from the View/Edit Test Details section of your test details page. If you are self-hosting the test files on your own server, you must note that Adhere to Do Not Track feature does not apply.
NOTE: The self-hosting capability is not supported for VWO Insights.
If you are running multiple tests on a single page, download the test-specific files (vwo_test_YourCampaignID.js) for each test and upload them to your server. However, you do not need to upload the common VWO script (vwo_static.js or vwo_no_jquery.js) for each test. This script work for all your tests.
NOTE: Upload the test-specific files (vwo_test_YourCampaignID.js) first followed by the common VWO script files (vwo_static.js or vwo_no_jquery.js).