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

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -