42Gears Speaks Driving Enterprise Mobility

22Jul/100

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

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.

Go to Home


Filed under: General Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.