A new feature to help you run advanced experiments faster

by Optimizely ‎01-30-2015 January 30, 2015

Hi everyone!


If you’re a heavy Optimizely user, you may have encountered situations where you needed to deploy code changes to your website so that your experiments run the way you want. For example:


  • Tracking custom events, like scroll depth and mouse hover
  • Reusing custom modules/code, like lightboxes and banners, across multiple experiments
  • Running experiments on single-page apps that happen without reloading the page
  • Managing multiple analytics integrations on the same page
  • Targeting more than one experiment to the same audience

Today we’re excited to let you know that we’ve added a new advanced configuration setting, called Project Javascript, that allows you to insert custom JavaScript that runs before the Optimizely snippet, without having to deploy manual changes to your site’s code.


This setting is available to select Enterprise customers, and you can access it by going to Home > Settings > JavaScript in your Optimizely account. If you don’t have access to it and are interested in learning more, please reach out to your Customer Success Manager or simply email sales@optimizely.com.

We’re excited to hear what you think!

by greg
‎01-30-2015 January 30, 2015 - edited ‎01-30-2015 January 30, 2015

Awesome. This will be especially useful for replacing some manual activations, which in turn will save on development time.


Will this be available for grandfathered Gold plans, by some chance?

Level 2
by Optimizely
‎01-30-2015 January 30, 2015

@greg - Glad to hear you're excited about this! We're hoping this helps customers save a lot of time in the experiment setup phase. It's not available for grandfathered Gold plans, but if you're interested, I highly encourage you to email sales@optimizely.com to see what they can do for you. Smiley Happy

by KelleyH
‎02-09-2015 February 9, 2015 - edited ‎02-09-2015 February 9, 2015

Hi - we're just getting started with Optimizely. Right now, we're sticking to a/b testing, no multi-variate testing just yet.


In this entry you write, " insert custom JavaScript that runs before the Optimizely snippet, without having to deploy manual changes to your site’s code."

Could you provide more context - one or two businesses cases or case studies to help me understand how this feature will help us?

Does this method solve the "flash of content" problem, where the entire version of a page flahes to the user before delivering one or the other of the two options in the test?



Level 1
by holosmedia
‎03-03-2015 March 3, 2015

@KelleyH This won't help with the "flash of content" as it's caused by not embedding the snippet at the site's <head> tag (making sure it loads before the <body>). This feature is useful for binding custom events to experiments without actually having to add that temporary code to your site.

Level 1