Open rufuspollock opened 10 years ago
+1; while there is some vendor lock-in with Google Analytics, this is something I have been thinking would be useful to CKAN users.
Another option would be to have hooks for a full-fledged API (quota) management platform of which there are several open source and COTS ones available. One resource: http://management.apievangelist.com/
I did a hacky patch to the googleanalytics extension to track API usage https://github.com/ckan/ckanext-googleanalytics/pull/6
+1
Also interested in API usage tracking. Not sure if a web analytics (GA/piwick) or daily server log processing would be the most efficient.
I think for most people, real-time is more useful than a daily log, particularly for things like rate-limiting / quota-ing.
@adamamyl agreed quota management / rate limiting is a whole new dimension / problem - I would just like to report to my data providers the use that their data resources see - regardless of the access mechanism.
We track analytics on the front end using Google Analytics or similar (e.g. piwik)
However, we don't track API usage in any systematic way. This would be useful to provide reports to users and also in order to manage API use.
Proposal
One of the simplest options would be to plug into google analytics system but from the server side using "universal analytics" - there's a python universal library here.
We could also use this to track other activity e.g. certain kinds of events:
Note: afaict alternatives to GA like piwik do not support the "Measurement Protocol"