andrewxhill / MOL

The Map of Life
mol.colorado.edu/
19 stars 4 forks source link

Analytics tracking #62

Closed eightysteele closed 12 years ago

eightysteele commented 13 years ago

Rob identified the need for MOL to track UI and API usage. On the UI side we just need to enable Google Analytics for now. On the API side we need to track API requests (including API name, request params, result metadata, origin host, etc). There are a couple of different approaches here. We could add information logging to API handlers and then just download/process logs directly for reporting. Or we could create an Analytics kind for storing per-request API usage. The second option needs to be carefully designed since high API usage would result in datastore write contention. We could use a memcache as a write-through cache here and also the deferred tasks API.

robgur commented 13 years ago

This is an add to Milestone 1 b/c we need tracking data sooner rather than later if we plan to seek funding past initial funding from NSF/EOL.