My site provides public JSON API. I want to track usage of this API (like I do for webpages) with google analytics. How can I track API usage?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Seems like I can use GA for mobile apps. It’s serverside. Docs: https://developers.google.com/analytics/devguides/collection/other/mobileWebsites
Well, I guess, I’ll have to port ga lib to python in my case 🙂
UPD: Oh, b1tr0t already done it for us: https://github.com/b1tr0t/Google-Analytics-for-Mobile–python-
UPD2: Found a fork which seems to be a bit more useful: https://github.com/singhj/Google-Analytics-for-Mobile–Google-App-Engine
UPD3: I’ve made a small library based on mentioned above, it’s more pythonic, and has out-of-the-box support for flask and django – https://bitbucket.org/DataGreed/pyga/