Spring naar content

Where to place Google Website Optimizer Control Script to avoid IE quirks?

jul 22, 2010 | 42Gears Team

If you are using Google Website Optmizer Control Script to test and improve your website, be careful about where you place the control script in your html page. IE won’t like it if the script is placed before the Document Type Declaration. IE might render the content in distorted form severely impacting visitor experience.

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>

Just put the control script after the Document Type Declaration and you should be fine.

Subscribe for our free newsletter

Thank you! you are successfully subscribed.
newsletter

Exclusive News and Updates on Enterprise Mobility!

* I consent to receive newsletters via email from 42Gears and its Affiliates.
Please agree
* I have reviewed and agreed to 42Gears Privacy Policy and Terms of Use prior to subscribing and understand that I may change my preference or unsubscribe at any time.
Please agree
Please verify captcha
Please enter a valid official email