Fix sending of visit variables

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-02-13 11:50:40 +00:00
parent 0c4ee0091e
commit f53c415504

View file

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