How to trigger Google Analytics events from Python?

Soviut picture Soviut · Jan 11, 2010 · Viewed 8.4k times · Source

I'm developing a site that has a REST API and I'd like to track the API usage using Google Analytics events. Is there a straightforward way to trigger GA events from Python that doesn't involve loading up an entire webbrowser component just to send a javascript request?

Answer

Daniil Ryzhkov picture Daniil Ryzhkov · Oct 19, 2012

This project called PyGA is much better. Unlike "Google-Analytics for Mobile" project on github it is well documentated and has rich API.