How to add an analytics code before in upfront

Hi I ma using a service like crazyegg and they gave me a code that I need to add before </head>, I went to Appearance- - Themes -- Editor and I couldn't find it..

Thanks for your help