Adding analytics just before </head> tag