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 Pyth
All other answers are for the outdated ga.js protocol, this library seems to implement the newer universal.js (I didn't try it yet):
ga.js
universal.js
https://github.com/analytics-pros/universal-analytics-python