# Best way to detect environment

**URL:** <https://discourse.gohugo.io/t/best-way-to-detect-environment/7165>\
**Category:** support\
**Created:** [June 23, 2017, 9:34am UTC](https://discourse.gohugo.io/t/best-way-to-detect-environment/7165 "2017-06-23T09:34:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [June 23, 2017, 10:48am UTC](https://discourse.gohugo.io/t/best-way-to-detect-environment/7165/2 "2017-06-23T10:48:51Z")

</div>

See this thread. [How to Exclude Google Analytics When Running Under Hugo Local Server](https://discourse.gohugo.io/t/how-to-exclude-google-analytics-when-running-under-hugo-local-server/6092/8)

Particularly @budparr 's contributions.

---

_[View the full topic](https://discourse.gohugo.io/t/best-way-to-detect-environment/7165)._
