react-ga4 icon indicating copy to clipboard operation
react-ga4 copied to clipboard

General question: Adding hash

Open karolis-666 opened this issue 1 year ago • 0 comments

Hello,

Does anyone encountered issue with adding hashed value? Didn't found inside docs how to implement it using ReactGA.initialize().

So far did it with JS by finding script in html head and adding additional tags crossorigin and integrity with hash, but then get :

Failed to find a valid digest in the 'integrity' attribute for resource 'https://www.googletagmanager.com/gtag/js?id={MY_MEASSUREMENT)_ID}' with computed SHA-256 integrity {SHA256_CODE}. The resource has been blocked

Read a bit google docs, but nothing particular with hashes. Maybe someone knows solution?

karolis-666 avatar Feb 28 '24 12:02 karolis-666