mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +00:00
Swap back analytics url to the correct one, change property name
This commit is contained in:
parent
f8ac76491f
commit
631ee554d0
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user