|
This article covers the following: |
Overview
With JavaScript files hosted on your server, your website doesn't need to contact a Wingify server for loading test variations.
Why Self-host the Test Files?
As a website owner, you may be skeptical about using external JavaScript from a third party. For your requirements, you may want to remove the dependency on Wingify servers and have all the test resources under your control. Using the self-hosting option, you can store the Wingify JavaScript files locally to ensure that the test settings, files, and code for your tests reside on your server.
For such self-hosting websites, the Wingify servers only register visits and conversions. Typically, self-hosting is more relevant if Wingify Content Delivery Network (CDN) does not have a node in or near your country.
How to Host Wingify JavaScript Files On Your Server
- Log in to your Wingify account.
- Hover on the profile menu in the top right corner of the dashboard and click Settings.
- From the left navigation menu, click Campaigns.
- Scroll down to Self-Host campaign JS.
- Click Download Script File to download the JavaScript file.
- Add the downloaded script file to your website.
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 Wingify 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 Wingify 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.
- The live previews option does not work for tests where self-hosting is enabled.
Enable 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 self-host the test files on your own server, note that the Adhere to Do Not Track feature does not apply.
Host JavaScript Files for Multiple Tests on a Single Page
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.
If you are running multiple tests on a single page, download the test-specific files (wingify_test_YourCampaignID.js) for each test and upload them to your server. However, you do not need to upload the common Wingify script (wingify_static.js or wingify_no_jquery.js) for each test. This script work for all your tests.
Need more help?
For further assistance or more information, contact Wingify Support.