Google Analytics - active or not?

AI-generated summary

Victoria_Russell asked how to check if Google Analytics is active on their forum. Falco explained that if the ga universal tracking code site setting is filled, it’s active — but if content security policy is enabled, https://www.google-analytics.com must be added to script src. david noted this is handled automatically in Discourse’s code. However, Falco pointed out it appeared broken on Meta, showing a screenshot. david confirmed it loads in Chrome and Google Analytics is in the CSP header, suggesting ad-blockers might interfere. itsbhanusharma added that Firefox’s built-in tracking protection blocks Google Analytics by default. Falco confirmed this was the issue — Firefox’s latest version blocks GA by default. Victoria_Russell thanked Falco for the quick help. In short: GA is active if configured, but may be blocked by browser privacy features — especially Firefox’s default tracking protection.

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?

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.

This is automatic:

Why is it broken in Meta then :thinking:

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

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

@Falco awesome, thanks for coming back so quickly :+1:

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