1. Home
  2. Where to place Google Website Optimizer Control Script to avoid IE quirks?

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

KB ID: 42G2012735
Views: 102
Updated: June 2021

If you are using Google Website Optimizer Control Script to test and improve your website, be careful about where you place the control script on your HTML page. IE won’t like it if the script is placed before the Document Type Declaration. IE might render the content in a 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.

For more details on our products, click here 
If you need further assistance, please submit a ticket here