Swap back analytics url to the correct one, change property name

This commit is contained in:
ivanThePleasant 2022-08-11 15:58:53 +03:00
parent f8ac76491f
commit 631ee554d0

View File

@ -14,17 +14,17 @@ const useTracking = () => {
trackRef.current = (event, properties) => { trackRef.current = (event, properties) => {
if (uuid) { if (uuid) {
try { try {
axios.post('http://localhost:4000/track', { axios.post('https://analytics.strapi.io/track', {
event, event,
adminUserId,
deviceId, deviceId,
properties: { properties: {
...telemetryProperties, ...telemetryProperties,
...properties, ...properties,
projectType: strapi.projectType, projectType: strapi.projectType,
environment: appInfo.currentEnvironment, environment: appInfo.currentEnvironment,
uuid, projectId: uuid,
}, },
adminUserId,
}); });
} catch (err) { } catch (err) {
// Silent // Silent