How to trigger Google Analytics events from Python?

后端 未结 6 1287
礼貌的吻别
礼貌的吻别 2020-12-15 05:06

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

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-15 05:25

    Basically it boils down to: https://gist.github.com/canburak/1593381

    For more information about the parameters etc: https://medium.com/python-programming-language/80eb9691d61f

提交回复
热议问题