Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Last week one of the guy's at our office did a talk on using Google's Website Optimizer for AB multivariate testing. In the talk, he says that when you set it up you just add some special code to the page around the HTML you want to vary [ see #3 under multivariate test here ]


What's going on with that unbalanced tag at the end? What magic is Google doing?

share|improve this question
should be tagged google-website-optimizer, not google-webmaster-tools – Yahel Sep 3 '10 at 18:38
up vote 7 down vote accepted

The utmx_section("Headline") command will execute as the document is parsed. If it emits a <noscript> tag using document.write() the browser will ignore that particular section, until it meets the </noscript> tag.

Here is the same trick, but with a h1:

    <p>That's how...</p>

this will give a body looking like

    <p>That's how...</p>
share|improve this answer
Why they do it this way is beyond me though - if you want xhtml or have an XML oriented rendering engine the unbalanced </noscript> tag is a huge issue. – mawtex Sep 3 '10 at 20:07
Ah, that's a better explanation than what Google has(google.com/support/websiteoptimizer/bin/…). +1 – Lèse majesté Sep 3 '10 at 20:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.