使用 Django 部署 Google Analytics [英] Deploying Google Analytics With Django

查看:22
本文介绍了使用 Django 部署 Google Analytics的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们即将部署一个新的 Django 网站,我们想使用 Google Analytics 来跟踪网站上的流量.但是,我们不希望开发实例上的所有点击都对 Google Analytics(分析)统计数据做出贡献.

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 development instances to contribute to the Google Analytics statistics.

有几种方法可以解决这个问题:

There are a few ways we could deal with this:

  • 在 settings.py 中有一个配置选项,基本模板使用它来决定是否包含适当的
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆