jquery - Tracking onhashchange events -
looking best practice following scenario:
in traditional webapp, perform analytics on logs based on http gets. project in question leverages html5, jquery , mustache.js dynamically render templates jsonp calls. views respond onhashchange events create bookmark-able urls, parameters via jquery bbq.
my issue hash isn't passed server, these changes in url aren't going show in regular access logs. best solution that's been offered far, track hash changes locally, , put / post them service when browser fires onbeforeunload.
i'm interested in other solutions tracking local hash history changes on server, can't use google analytics this.
call simple file (track.html
, track.php
, track.asp
) depending on server architecture. file can empty.
onhashchange
, ajax call simple tracking file hash querystring (track.html?hash=hashstringvalue
). should show in access logs.
Comments
Post a Comment