I am looking to add some sort of analytics to my Tastypie-powered API. I really enjoy Google Analytics for the regular web site however obviously it won't work for an API. How do you do analytics for APIs in general? And are there any packages available for Tastypie which add analytics - at least some basics: resource url, time, agent, request headers, etc?
While I use Tastypie, the same question can be asked of django-piston and django-rest-framework.