Siteimprove script in source code

Created on 26 October 2023, 11 months ago

When activating this module and adding ID the siteimprove code appears in html source code as script tag.

<script>(function() {var sz = document.createElement('script');
      sz.type = 'text/javascript'; sz.async = true;
      sz.src = 'https://siteimproveanalytics.com/js/siteanalyze_XXX.js';
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sz, s);
      })();
</script>

Because of this 'unsafe inline' tag has to be used for CSP rules.

Would it be possible to make this in <script src=""></script> file?

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇦🇿Azerbaijan ActuallyAM

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024