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?
There is an open source implementation of Google-Analytics for Mobile in python available here: http://github.com/b1tr0t/Google-Analytics-for-Mobile--python-
You can probably integrate this into your own setup by importing 'track_page_view' and providing it with the appropriate WSGI request environment.