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

Fix sending of visit variables to Matomo
pull/21833/head
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
1 changed files with 1 additions and 1 deletions

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(),