比较精简前端只写了个大略的框架,事理是css伪元素去访问后端接口。
css前端部分:
通过建立伪元素,当页面访问,鼠标移入时就会访问到接口,接口在记录下动作就可以。

后端用了php写日志的形式,没有入库,正常可以入库并打算韶光在后台统计出来。
php部分:
当访问不同的区块就会记录行为。
玄色头部,灰色中部,赤色底部
一个思路,可参考衍生。
<?php
if($_GET['id']==1){
reslog(date(\"大众Y/m/d h:i:s\"大众).\"大众 点击了头部\公众);
}
if($_GET['id']==2){
reslog(date(\公众Y/m/d h:i:s\"大众).\"大众 点击了中部\公众);
}
if($_GET['id']==3){
reslog(date(\"大众Y/m/d h:i:s\"大众).\"大众 点击了底部\公众);
}
function reslog($data){
$log_file = 'res.log';
$content =var_export($data,TRUE);
$content .= \公众\r\n\n\公众;
file_put_contents($log_file,$content, FILE_APPEND);
}
?>