DEV: also use `console.error` when you're in preview / force activation mode

Status: New
by ‎10-01-2015 October 1, 2015

Debugging with optimizely.push('log') is an extra step that confuses most people and/or dumps way too much into the console. As a feature it would be awesome if the internal log function had an if statement for:


if (isProbablyADev()) {
  window.console.error.apply(console, arguments);

function isProbablyADev(){
  return /optimizely_x/.test(location.search)
Experimentation Hero