Google Analytics Generic Non-Tracking Code

I find it difficult to find a mistake that I can make with GA. I developed the site http://farmacia-milenium.com.ar , which used the universal tracking code by default. For some reason, the script is not working and I am not tracking correctly. I do not know if any site code can interrupt the code.

Can someone help me?

Hi

0
analytics google-analytics
source share
2 answers

The Google Tag Assistant says that the analytics.js script is not available, and the console (in Google Chrome, that is) shows an error:

An inline script has been refused because it violates the following Content Security Policy: "script -src" self ".

It follows that your content security policy must be adapted so that the Google Analytics code is added to the page.

0
source share

After a long search, I was able to find a solution for my quest:

X-Content-Type-Options header set "nosniff" Header set X-XSS-Protection "1; mode = block" X-Frame-Options header set "SAMEORIGIN" Strict-Transport-Security header set "max-age = 631138519" Header disabled Content Security Policy Header add Content-Security-Policy-Report-Only "default-src 'self'; font-src data: 'self'; img-src data: http: 'self'; media-src *; object -src 'none'; script -src data: http: 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; frame-src *; report-uri http://cspbuilder.info/ report / CODE "

0
source share

All Articles