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/v7.js. The full embed script becomes:
<script async defer src="https://scripts.simpleanalyticscdn.com/sri/v7.js" integrity="sha256-h3cSuH9qvT4n4b2GyoWiT2JneSepI35f+ZJuh8PpzQ8= sha384-FMDsKPnkIpujeBBbBOK2v3MU7o6cGBg/dMoKxVVm9hqzhcPd19Tq6/PeM6FKw3ZI sha512-Jz0QmBIkE5jm7CHPxYqmZCv88BziX3GwL8qVYPUSMgZxTYMyi8nQcEetTkw/dt/7VdJzFRSLLWmDwRFSdBILBA==" 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/v7/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: