![]() ![]() Learn more in our developer documentation. If you do not need jQuery for your custom code (in variation code, experiment code or project code), you can remove jQuery from the Optimizely Web Experimentation snippet. These changes do not appear in the custom code box as they did before. Instead, we store the entire structure of what you change in the Visual Editor and list a summary of those changes in the left sidebar. You can modify the timing by including code that specifies when things should run.Ĭustom code and visual changes are separated. Your visual changes are not instantly translated to code. This gives you as much control as possible over the timing of custom code execution. Your code runs exactly as written, often before the DOM is ready. Here are a few things to keep in mind about custom code:Ĭustom code runs immediately. Optimizely executes your custom JavaScript by appending it as a tag to the body of your page.Ĭustom code in Optimizely Web Experimentation and Optimizely Performance Edge You cannot add code that includes a tag using the Edit HTML feature in the Visual Editor, but you can paste external JavaScript into the box. For example, to add an Olark or ClickDesk widget. Load an external JavaScript file as part of a variation. Use CSS selectors to change multiple similar elements simultaneously instead of making individual changes. With custom code, you can:Įxecute your custom code only for visitors bucketed into a particular variation instead of all visitors. Optimizely Web Experimentation and Optimizely Performance Edge lets you use custom JavaScript or CSS code to make powerful changes to your site and extend your testing capabilities beyond Optimizely's standard toolkit. Add custom code to your Optimizely experiments.Distinguish between variation-level code and experiment-level (shared) code.Decide whether your experiments can benefit from adding custom code. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |