Hacker News new | past | comments | ask | show | jobs | submit login
Using Google Analytics - New Snippet Code for AJAX (jtame05.wordpress.com)
16 points by jmtame on Sept 4, 2008 | hide | past | favorite | 1 comment



Javascript is pretty dynamic. You can probably just do some aspect-oriented programming if you want to log every request. If you're using jQuery, for example, alias the $.ajax method so that it calls the standard jQuery method, but then also calls the code snippet to Google

Then again, you probably don't want to log every single AJAX request.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: