VWO Code Editor is an advanced VWO feature for users who want to code the changes on their website. Code Editor allows you to modify the code of native VWO operations according to your needs and add your custom code to the tool. To learn more about JS code snippets for VWO operations, click here.
ATTENTION The code editor is currently available for A/B tests and Personalization only.
Accessing Code Editor
Modifying Code in a Variation
To modify the code snippet of a variation, click the Edit Code option on Variation Settings.
You can write a custom code in the editor or modify existing operations. If you are using VWO notations, the editor will automatically identify it and map it to a VWO operation. However, if the notation does not map to the default VWO operations, it will be logged as a Custom JS/CSS operation. To refer to the list of VWO operations, click here.
Adding JS/CSS for the Test
Using VWO Code Editor, you can also add the test level JS/CSS to execute before or after applying the variation changes. Test JS/CSS is the code which will run across your website, including all variations and the control. You would add global JS/CSS when you want to implement a change across all your test pages including the control.
Click Campaign/JSS on the lower-right side of the editor.
To learn more about adding test JS/CSS, click here.