From f53c41550459452abc68c2f9445c4777bfa50eb7 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 13 Feb 2020 11:50:40 +0000 Subject: [PATCH] Fix sending of visit variables Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/Analytics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Analytics.js b/src/Analytics.js index e95887a810..39731a0e7d 100644 --- a/src/Analytics.js +++ b/src/Analytics.js @@ -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(),