# Google Analytics - active or not?

**URL:** https://meta.discourse.org/t/google-analytics-active-or-not/109254
**Category:** Support
**Created:** [February 15, 2019, 3:08pm UTC](https://meta.discourse.org/t/google-analytics-active-or-not/109254 "2019-02-15T15:08:24Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Victoria\_Russell](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/victoria_russell/32/130918_2.png) [@Victoria\_Russell](https://meta.discourse.org/u/Victoria_Russell)
#### Post date: [February 15, 2019, 3:08pm UTC](https://meta.discourse.org/t/google-analytics-active-or-not/109254/1 "2019-02-15T15:08:24Z")

</div>

I have looked through the settings menu and I was wondering if someone could tell me where I can find out if Google Analytics is active on our forum?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [February 15, 2019, 3:14pm UTC](https://meta.discourse.org/t/google-analytics-active-or-not/109254/2 "2019-02-15T15:14:57Z")

</div>

If the site setting `ga universal tracking code` is filled it will be active.

If you do have `content security policy` enabled you will also need to add and `https://www.google-analytics.com` to `content security policy script src`, for it to work.

You should see the hits in Google Analytics dashboard in a few moments after configuration.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [February 15, 2019, 3:16pm UTC](https://meta.discourse.org/t/google-analytics-active-or-not/109254/3 "2019-02-15T15:16:57Z")

</div>

> [@Falco](#):
>
> If you do have `content security policy` enabled you will also need to add and `https://www.google-analytics.com` to `content security policy script src` , for it to work.

This is automatic:

> <https://github.com/discourse/discourse/blob/main/lib/content_security_policy/default.rb#L55-L56>

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [February 15, 2019, 3:18pm UTC](https://meta.discourse.org/t/google-analytics-active-or-not/109254/4 "2019-02-15T15:18:40Z")

</div>

> [@david](#):
>
> This is automatic:

Why is it broken in Meta then 🤔

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/c/7c8657a868f017e98f128e00366b8bcd0e0f4579.png)

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [February 15, 2019, 3:21pm UTC](https://meta.discourse.org/t/google-analytics-active-or-not/109254/5 "2019-02-15T15:21:23Z")

</div>

Loads for me in chrome, and google analytics is present in the CSP header. Do you have an ad-blocker?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [February 15, 2019, 3:23pm UTC](https://meta.discourse.org/t/google-analytics-active-or-not/109254/6 "2019-02-15T15:23:50Z")

</div>

or it can be this new tracking protection feature of firefox, it blocks google analytics on all websites.

---

<div class="post-metadata">

### Author: ![Victoria\_Russell](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/victoria_russell/32/130918_2.png) [@Victoria\_Russell](https://meta.discourse.org/u/Victoria_Russell)
#### Post date: [February 15, 2019, 3:28pm UTC](https://meta.discourse.org/t/google-analytics-active-or-not/109254/7 "2019-02-15T15:28:16Z")

</div>

@Falco awesome, thanks for coming back so quickly 👍

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [February 15, 2019, 3:52pm UTC](https://meta.discourse.org/t/google-analytics-active-or-not/109254/8 "2019-02-15T15:52:29Z")

</div>

> [@david](#):
>
> Loads for me in chrome, and google analytics is present in the CSP header. Do you have an ad-blocker?

> [@itsbhanusharma](#):
>
> or it can be this new tracking protection feature of firefox, it blocks google analytics on all websites.

That was it. In latest Firefox it’s blocked by default.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [March 17, 2019, 3:52pm UTC](https://meta.discourse.org/t/google-analytics-active-or-not/109254/9 "2019-03-17T15:52:40Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
