Merge pull request #4068 from matrix-org/t3chguy/piwik_csp
Fix sending of visit variables to Matomo
This commit is contained in:
commit
4952b5b001
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ class Analytics {
|
||||||
...data,
|
...data,
|
||||||
url: getRedactedUrl(),
|
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
|
res: `${window.screen.width}x${window.screen.height}`, // resolution as WWWWxHHHH
|
||||||
rand: String(Math.random()).slice(2, 8), // random nonce to cache-bust
|
rand: String(Math.random()).slice(2, 8), // random nonce to cache-bust
|
||||||
h: now.getHours(),
|
h: now.getHours(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue