You have to edit the index.php of the template. But remember that a template update will overwrite the again. Alternately use an extension such as head tag or headscript.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.