detroitledger / gnl_profile

API & data management system for the Detroit Ledger
https://www.detroitledger.org
0 stars 2 forks source link

API logs #62

Open hampelm opened 10 years ago

hampelm commented 10 years ago

It would be helpful to have a log of every term searched. Not sure how to do it (is there a plugin that can feed to google analytics? Or even just having a logfile somewhere I can SCP down is fine.

bnchdrff commented 10 years ago

Prob. the easiest way to do this is to use events in google analytics:

_trackEvent(category, action, opt_label, opt_value, opt_noninteraction)

via https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide

hampelm commented 10 years ago

Ok, we'll do it in the client. I've opened an issue for the backbone client at detroitledger/ledger-backbone#1

bnchdrff commented 10 years ago

Someday, we should start logging API requests.

bnchdrff commented 10 years ago

we are now logging all API requests via nginx. analyzing the logs is the next step :)