Google Analytics - active or not?

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?

2 Likes

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.

4 Likes

This is automatic:

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

2 Likes

Why is it broken in Meta then :thinking:

3 Likes

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

4 Likes

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

7 Likes

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

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

4 Likes

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