- πΊπΈUnited States cboyden
We've been using the patch in #8 along with β¨ Support Google Analytics 4/gtag.js Fixed since last July and it's working fine. The patch still applies (with a few offset lines).
This module puts the Google Analytics script on the page inline. When implementing CSP (Content Security Policy), inline script can be tricky. There are ways to allow it, for example, by putting a hash of the script into the script-src configuration, which is will work great for a single site. But if you have lots and lots of sites, and you just want to say the script from Google Analytics is to be trusted, the easiest way to do that is to put the code in a file.
Add an option to write the Google Analytics script to a file rather than putting it on the page inline.
Will add a checkbox to the admin settings form.
None.
Will add a Drupal variable.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
We've been using the patch in #8 along with β¨ Support Google Analytics 4/gtag.js Fixed since last July and it's working fine. The patch still applies (with a few offset lines).