mirror of
https://github.com/strapi/strapi.git
synced 2025-11-12 16:22:10 +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) => {
|
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user