Deploying Google Analytics With Django

后端 未结 10 1142
遇见更好的自我
遇见更好的自我 2020-12-23 11:29

We\'re about to deploy a new Django website, and we want to use Google Analytics to keep track of traffic on the site. However, we don\'t want all of the hits on developmen

10条回答
  •  一整个雨季
    2020-12-23 12:07

    Hi all it's a quite old post.. But since I spent some time in searching some reusable app that is still actively maintained I want to share what I found:

    https://github.com/jcassee/django-analytical

    This project is still actively maintained and does not require the ID to be added to the database (I think is better if you have one project per site) so it is bared in the code no matter if the environment is development or production.

提交回复
热议问题