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) => {
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