# How to enable Google Analytics

**URL:** https://meta.discourse.org/t/how-to-enable-google-analytics/159891
**Category:** Data & reporting
**Tags:** analytics
**Created:** [August 5, 2020, 10:14am UTC](https://meta.discourse.org/t/how-to-enable-google-analytics/159891 "2020-08-05T10:14:20Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [August 5, 2020, 4:45pm UTC](https://meta.discourse.org/t/how-to-enable-google-analytics/159891/3 "2020-08-05T16:45:23Z")

</div>

The topic at [Integrate Google Tag Manager with Google Analytics](https://meta.discourse.org/t/setup-google-tag-manager-for-analytics/47335) describes how to setup Google Tag Manager on Discourse. We seem to be missing a #howto topic that deals with just setting up Google Analytics.

If you are not using Google Tag Manager, all you need to do to setup Google Analytics is add your Google Analytics tracking code to the Discourse `ga universal tracking code` site setting, and your domain name to the `ga universal domain name` site setting. When the `ga universal tracking code` site setting is set, Discourse will automatically load the analytics script.

---

_[View the full topic](https://meta.discourse.org/t/how-to-enable-google-analytics/159891)._
