Skip to content

Commit 4952b5b

Browse files
authored
Merge pull request matrix-org#4068 from matrix-org/t3chguy/piwik_csp
Fix sending of visit variables to Matomo
2 parents 12c743b + f53c415 commit 4952b5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analytics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class Analytics {
217217
...data,
218218
url: getRedactedUrl(),
219219

220-
_cvar: this.visitVariables, // user custom vars
220+
_cvar: JSON.stringify(this.visitVariables), // user custom vars
221221
res: `${window.screen.width}x${window.screen.height}`, // resolution as WWWWxHHHH
222222
rand: String(Math.random()).slice(2, 8), // random nonce to cache-bust
223223
h: now.getHours(),

0 commit comments

Comments
 (0)