- content_for :analytics do
  = include_google_experiment 'Signup Form - less fields' do
    javascript:
      var variation;

      switch (#{json @variation}) {
        case 'a':
                variation = GoogleExperiments.chooseVariation(0);
                break;
        case 'b':
                variation = GoogleExperiments.chooseVariation(1);
                break;
        case 'unknown':
        default:
                variation = GoogleExperiments.chooseVariation();
      }

      switch (variation) {
        case 1:
          document.documentElement.classList.add("html-variation-b");
          break;
        case 0:
        default:
          document.documentElement.classList.add("html-variation-a");
          break;
      }
