Moved tracking code into head, made optional through var