php - how to recognize a real visit of web page -
what want : our scheme redirecting connections of clients our web server (as : www.example.com/index) . in client pc if (app , win update , messengers , ... ) wants connect net redirect address . want track web visits client visit opening web browser , submitting our address not coming applications .
issues : using zend framework , php , javascript applications maybe run java scripts , that'll not utilize total (some exception). tracking ip address can not possible if want submit visit each page separately. applications sessions visitor . (and cookies)
what : using java script code listening mouse move event , when happen send our log info ajax . show real visitor visiting page .
question : there improve way tracking visits ?
maybe can seek 'pinging' server loading hidden image via javascript when webpage loads. this:
window.addeventlistener("load",function() { var img = document.createelement("img"); img.src = "/pingme.php"; img.style.display = "none"; document.body.appendchild(img); },false); php javascript zend-framework
No comments:
Post a Comment