How to trigger Google Analytics events from Python?

后端 未结 6 1285
礼貌的吻别
礼貌的吻别 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条回答
  •  无人及你
    2020-12-15 05:22

    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):

    https://github.com/analytics-pros/universal-analytics-python

提交回复
热议问题