Merge pull request #4068 from matrix-org/t3chguy/piwik_csp

Fix sending of visit variables to Matomo
This commit is contained in:
Michael Telatynski 2020-02-13 12:46:33 +00:00 committed by GitHub
commit 4952b5b001
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -217,7 +217,7 @@ class Analytics {
...data,
url: getRedactedUrl(),
_cvar: this.visitVariables, // user custom vars
_cvar: JSON.stringify(this.visitVariables), // user custom vars
res: `${window.screen.width}x${window.screen.height}`, // resolution as WWWWxHHHH
rand: String(Math.random()).slice(2, 8), // random nonce to cache-bust
h: now.getHours(),