diff --git a/javascript/mixpanel-network.js b/javascript/mixpanel-network.js index 4cbd3f20..d2abbd99 100644 --- a/javascript/mixpanel-network.js +++ b/javascript/mixpanel-network.js @@ -26,7 +26,7 @@ export const MixpanelNetwork = (() => { headers: { "Content-Type": "application/x-www-form-urlencoded", }, - body: `data=${JSON.stringify(data)}`, + body: `data=${encodeURIComponent(JSON.stringify(data))}`, }); const responseBody = await response.json();