# Discourse tracks my IP with DNT setting enabled

**URL:** <https://meta.discourse.org/t/discourse-tracks-my-ip-with-dnt-setting-enabled/94007>\
**Category:** Feature\
**Created:** [August 6, 2018, 9:25am UTC](https://meta.discourse.org/t/discourse-tracks-my-ip-with-dnt-setting-enabled/94007 "2018-08-06T09:25:22Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![LeoMcA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leomca/32/87233_2.png) [@LeoMcA](https://meta.discourse.org/u/LeoMcA)\
**Post date:** [August 7, 2018, 12:51pm UTC](https://meta.discourse.org/t/discourse-tracks-my-ip-with-dnt-setting-enabled/94007/7 "2018-08-07T12:51:20Z")

</div>

I wouldn’t say Discourse’s use of IP addresses really falls under the purview of DNT - which my understanding has always been about tracking users _across_ sites.

So, the way we respect DNT on Mozilla Discourse is by conditionally loading our GTM script based on it:

> <https://github.com/mozilla/discourse-mozilla-theme/blob/master/src/common/head_tag/0_dnt.js>

[https://github.com/mozilla/discourse-mozilla-theme/blob/master/src/common/head\_tag/1\_gtm.js](https://github.com/mozilla/discourse-mozilla-theme/blob/master/src/common/head_tag/1_gtm.js)

An (optional, because it does rather skew analytics) feature like this might be nice to see in core Discourse.

---

_[View the full topic](https://meta.discourse.org/t/discourse-tracks-my-ip-with-dnt-setting-enabled/94007)._
