Skip to main content
menu_icon.png

Everything you need to switch from Optimizely Classic to X in one place: See the Optimizely X Web Transition Guide.

x
Optimizely Knowledge Base

Check that the snippet is implemented

relevant products:
  • Optimizely X Web Experimentation
  • Optimizely X Web Personalization
  • Optimizely X Web Recommendations
  • Optimizely Classic

THIS ARTICLE WILL HELP YOU:
  • Check that the Optimizely snippet is implemented on your site

Here's how to double-check that the Optimizely snippet is implemented on your page correctly.

1. Find the snippet on the page

First, check that the snippet is implemented on the page. You can do this by typing 'optimizely' into the JavaScript console. This example uses Google Chrome, which we recommend for troubleshooting and QA.

  1. Open the developer console.

  2. Click Console, then enter "Optimizely" into Search.

  3. If the snippet is implemented, you'll see it in the following format: <script src="//cdn.optimizely.com/js/12345678.js"></script>

If the snippet isn't on the page, here's how to implement the snippet. If it is, use the next step that it's the right snippet.

2. Check that it's the right snippet

Once you find the snippet on your page, make sure that the snippet on the page matches the project that you're working with.

Below we show you how to check.

In Optimizely X

  1. In your project, navigate to Settings > Implementation.

  2. Check that ID on your page matches the snippet on your Snippet Implementation page. In the example above, the snippet ID is "123456789" matches the ID on the page, so you know the right snippet is implemented.

That's it!

In Optimizely Classic

  1. From the Homepage, navigate to Settings > Implementation.

  2. Check that ID on your page matches the snippet on your Snippet Implementation page. In the example above, the snippet ID is "123456789" matches the ID on the page, so you know the right snippet is implemented.