If you want to use SRI you can do this by using specific scripts. The default scripts are changing to reflect new features or code optimizations. You want to use SRI if you consider it a risk when our scripts change. You can also host our SRI script on your own server or CDN.
When you want to use our SRI version of our script you will need to update your script to
https://scripts.simpleanalyticscdn.com/sri/v5.js. The full embed script becomes:
<script async defer src="https://scripts.simpleanalyticscdn.com/sri/v5.js" integrity="sha256-Sc/GForbXRBy5y7PzW+7K3Er/ITCLC1UGQmlduCqtts= sha384-BdnBi1Ru15d1V0b4urSSnYHlDvQhlxfTjdvipREvkCk6UfpdmU4rq9ioOOTU5R6W sha512-FHNFp3XOiAiaWUxliSf+cfJWrYziW9OmJ40HyCwBTTnlaUwJ5sdOESTLsyAlbbF+psEubq2q8rOBZc4iRMI6KQ==" crossorigin="anonymous"></script> <noscript><img src="https://queue.simpleanalyticscdn.com/noscript.gif" alt="" referrerpolicy="no-referrer-when-downgrade" /></noscript>
When using a custom domain you need to use this script:
https://CUSTOM.DOMAIN/v5/app.js. Replace the
CUSTOM.DOMAIN with your custom domain. To generate an SRI hash for your custom domain you can use report-uri.com or srihash.org.
To verify if our script is an SRI version you can always check for
SRI-version in the first line: