Tracker releases & SRI hashes
MetriXs supports Subresource Integrity (SRI), a W3C security standard that enables browsers to verify that externally hosted JavaScript files have not been modified or tampered with before executing them.
Using Subresource Integrity (SRI)
Section titled “Using Subresource Integrity (SRI)”To lock your MetriXs tracker to an exact cryptographic hash, add the integrity and crossorigin attributes to your <script> tag:
<script defer data-domain="yourdomain.com" src="https://app.metrixs.eu/tracker.js?v=1.1.0" integrity="sha384-34gRoLswM81WFwPdeZp/+ilDckJFJ29wbav0ymg+GYSaGA208wrak4uZXzFn2zgo" crossorigin="anonymous"></script>How it works
Section titled “How it works”- Version pinning: Always use the versioned endpoint (e.g.
?v=1.1.0). Versioned tracker releases onhttps://app.metrixs.euare strictly immutable and cached withpublic, max-age=31536000, immutable. - Cryptographic validation: When the browser downloads the script, it calculates its SHA-384 hash and compares it against the
integrityattribute. - Fail-closed security: If a single byte in the file does not match the hash (for instance if a proxy, man-in-the-middle, or server compromise attempts to inject code), the browser terminates script execution immediately.
- CORS requirement: The
crossorigin="anonymous"attribute is required by the W3C SRI specification. MetriXs sendsAccess-Control-Allow-Origin: *to enable SRI verification across any domain.
Content Security Policy (CSP)
Section titled “Content Security Policy (CSP)”MetriXs does not require complex or permissive CSP rules. Unlike advertising networks or multi-tenant tracking platforms, MetriXs only connects to a single European origin:
Content-Security-Policy: script-src 'self' https://app.metrixs.eu; connect-src 'self' https://app.metrixs.eu;Release history & integrity hashes
Section titled “Release history & integrity hashes”Below is the verified registry of every published MetriXs tracker release.
| Version | File | SHA-384 Integrity Hash | Release Date |
|---|---|---|---|
v1.1.0 |
tracker.js |
sha384-34gRoLswM81WFwPdeZp/+ilDckJFJ29wbav0ymg+GYSaGA208wrak4uZXzFn2zgo |
2026-11-15 |
v1.1.0 |
tracker.lite.js |
sha384-bVZPZaFYQvyo2chehG2FZ95a3Let4U6HxZn2fm4twZx5YE95YoBeoaJAbJGkAKCz |
2026-11-15 |
Verifying the hash yourself
Section titled “Verifying the hash yourself”You can verify the SHA-384 hash of any live release independently using your terminal:
curl -s https://app.metrixs.eu/tracker.js?v=1.1.0 | openssl dgst -sha384 -binary | openssl base64 -APrepend sha384- to the resulting base64 string to form the complete integrity value.