- Optimizely Web Experimentation
- Optimizely Web Personalization
- Optimizely Performance Edge
Your Optimizely Web Experimentation experiment is running, but you cannot see your variation (or certain changes you made) on your live page. Usually, this problem is with the variation code execution timing or scoping.
Check that recent changes are published
First, make sure your variation content is published.
If you made changes to a running experiment, you must publish the changes and start the experiment again to see them live.
If your experiment contains unpublished changes, you will see them listed.
Click Publish Experiment to publish variation content to your site.
Check the changes in Preview mode and your site
- Are you able to see your changes using the Preview tool?
The Preview tool automatically qualifies you for the right audience conditions and traffic allocation, so you can view the experiment as if you are in it. You may have a timing issue if you can see the changes in the editor but not in the Preview tool. Skip down to Check for a timing issue to learn more or see timing issues.
- Visit your site without the Preview tool. Do you see the variation when you expect to?
- Do you have an ad blocker installed? It may be preventing you from seeing the right changes.
If so, pause or disable the ad blocker or allow-list Optimizely Web Experimentation to see your variation content.
Ensure you are in the experiment and variation
- Check for active experiments with this call:
If the experiment name or ID is returned, then your experiment is active on the page.
- Use this call to check whether you are bucketed into the right variation:
If you see your variation's name (or ID), you are bucketed into the right variation.
If you see your experiment, are bucketed into the right variation, and can see your changes in the Visual Editor but not on your site, you likely have a timing issue.
Check for a timing issue
- If you do not see any issues with experiment activation or your variation code, the issue may have to do with the order in which Optimizely Web Experimentation runs on your page. In other words, the elements you want to change do not yet exist when the page first loads. See fix a timing issue.
- If flashing is not an issue because the change happens below the fold or to an element (for example, a banner) that does not display until later, for specific variation changes, you can have a browser load them asynchronously. Asynchronous loading makes the Optimizely Web Experimentation snippet itself slightly smaller as it does not contain the information needed to make that change, but it greatly increases the chances of flashing. See Fix flashing or flickering variation content.
Check for a scoping issue
window.functionName, as appropriate.
You can test whether your code is running as expected in the console while in Preview Mode.