From 631ee554d0c1fdd1be56dff7f0af6d256e84aa97 Mon Sep 17 00:00:00 2001 From: ivanThePleasant Date: Thu, 11 Aug 2022 15:58:53 +0300 Subject: [PATCH] Swap back analytics url to the correct one, change property name --- .../core/helper-plugin/lib/src/hooks/useTracking/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/helper-plugin/lib/src/hooks/useTracking/index.js b/packages/core/helper-plugin/lib/src/hooks/useTracking/index.js index 4b88af34f2..5fe886651c 100644 --- a/packages/core/helper-plugin/lib/src/hooks/useTracking/index.js +++ b/packages/core/helper-plugin/lib/src/hooks/useTracking/index.js @@ -14,17 +14,17 @@ const useTracking = () => { trackRef.current = (event, properties) => { if (uuid) { try { - axios.post('http://localhost:4000/track', { + axios.post('https://analytics.strapi.io/track', { event, + adminUserId, deviceId, properties: { ...telemetryProperties, ...properties, projectType: strapi.projectType, environment: appInfo.currentEnvironment, - uuid, + projectId: uuid, }, - adminUserId, }); } catch (err) { // Silent