在哪里放置代码

在哪里放置监测代码 看了N篇没看懂  (怎么放到网站首页)最好举个例子说明下

用户系统信息:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)