1

I'm working on implementing Google Analytics tracking on one of our Community Sites. I am following the instruction on this guide. I've currently completed steps 1-4 on the guide (which are basically the changes that are on the Salesforce side).

Before proceeding, I wanted to sanity check how it's going so far, but I've noticed that requests are not showing up on the Google Analytics side yet. I'm also seeing a very strange CSP error (see below; note that I removed the GA Id for security reasons). As you can see, I'm getting a CSP error for an image (image-src). What is weird is that the image is being hosted on https://www.google.com. I would have expected that image to be loaded from a different domain (like www.google-analytics.com).

enter image description here

For further context, here are more of my settings. Here is Settings -> Advanced (with GA Id removed).

enter image description here

And here are my Settings -> Security & Privacy Settings. enter image description here

Am I supposed to create a new CSP entry to allow images from https://www.google.com? If so, why don't the instructions mention it?

1
  • Have you ever found an answer to this issue? After 24 hours did you start seeing Analytics? as from my experience this issue does not affect the gathering of analytics itself.
    – GoldenAxe
    Commented Apr 13, 2022 at 19:43

1 Answer 1

0

To fix this error, you need to add a CSP entry in Setup -> CSP Trusted Sites.

The entry should look like this: enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .