Create a Visual Experiment
Why use the visual editor
Section titled “Why use the visual editor”Most A/B tests involve changes a marketer can make without developer help — a different headline, a new hero image, a repositioned CTA button. The visual editor lets you make those changes directly on a live preview of your page, see the result immediately, and launch the test in minutes. No pull requests, no deployment cycles, no waiting.
What you will do
Section titled “What you will do”- Create an A/B test experiment
- Open the visual editor on your target page
- Build one or more variations using point-and-click editing
- Preview variations across devices
- Save and prepare the experiment for launch
Create the experiment
Section titled “Create the experiment”- In the Optimizely application, navigate to Experiments and click Create New > A/B Test
- Name the experiment clearly — include what you are testing and when (e.g., “PDP hero image test — April 2026”)
- Enter the URL of the page where the test will run
- Click Create Experiment — the visual editor opens automatically
Edit elements in the visual editor
Section titled “Edit elements in the visual editor”The editor loads your live page with a toolbar overlay. Any change you make applies only to visitors bucketed into the variation you are editing.
Change text
Section titled “Change text”- Click the text element you want to modify
- Select Edit Text from the toolbar
- Type your new copy
- Click outside the element to confirm
Change an image
Section titled “Change an image”- Click the image element
- Select Change Image from the toolbar
- Paste a URL to the replacement image or upload a file
- Adjust sizing if needed
Modify styles
Section titled “Modify styles”- Click any element
- Select Edit Styles
- Adjust colors, fonts, padding, margins, borders, or visibility
- Changes reflect instantly in the preview
Rearrange or hide elements
Section titled “Rearrange or hide elements”- Click an element and select Move to drag it to a new position
- Select Hide Element to remove it from the variation without deleting it from your site
- Select Insert Before or Insert After to add new HTML elements adjacent to the selection
Create multiple variations
Section titled “Create multiple variations”You can test more than two options. Each variation is an independent version of the page.
- In the variation bar at the top of the editor, click Create Variation
- Name the variation descriptively (e.g., “Short headline with green CTA”)
- Make your edits for this variation
- Repeat to add more — keep total variations to four or fewer to preserve statistical power
The Original is your control. It always reflects your live page without changes.
Preview across devices
Section titled “Preview across devices”Before saving, confirm that your variations render correctly on different screen sizes.
- Click the Preview button in the editor toolbar
- Toggle between Desktop, Tablet, and Mobile viewports
- Check for layout breaks, text overflow, or misaligned elements
- If a variation looks broken on a viewport, adjust styles for that breakpoint
Save your work
Section titled “Save your work”- Click Save in the top-right corner of the editor
- The experiment is now in Draft status
- Before starting, add metrics and audience targeting (see related guides below)
Troubleshooting
Section titled “Troubleshooting”| Issue | Cause | Fix |
|---|---|---|
| Visual editor does not load | Browser extensions blocking the editor iframe | Disable ad blockers and try an incognito window |
| Changes not visible in preview | CSS specificity conflict with site styles | Use Edit Styles to add !important or switch to custom code mode |
| Editor shows wrong page version | Cached version of the page loaded | Hard-refresh the editor or clear browser cache |
| Element not selectable | Element generated dynamically after page load | Use Element Picker > Advanced and enter a CSS selector manually |
Best practices
Section titled “Best practices”- Test one hypothesis per experiment. Changing both the headline and the CTA in a single variation makes it impossible to attribute which change drove the result.
- Name variations by what changed, not by letter. “Urgency headline with red CTA” is more useful than “Variation B” when reviewing results weeks later.
- Avoid testing on low-traffic pages. The experiment needs enough visitors to reach statistical significance within a reasonable timeframe.
- Do not edit a running experiment. If you need changes, pause the experiment first. Modifying variations mid-flight invalidates your data.