mirror of
https://github.com/strapi/strapi.git
synced 2025-08-05 07:16:02 +00:00
Merge pull request #13765 from strapi/chore/analytics-admin-env
Add environment property to admin telemetry calls
This commit is contained in:
commit
2a9f721ac8
@ -84,6 +84,9 @@ function App() {
|
|||||||
event: 'didInitializeAdministration',
|
event: 'didInitializeAdministration',
|
||||||
uuid,
|
uuid,
|
||||||
deviceId,
|
deviceId,
|
||||||
|
properties: {
|
||||||
|
environment: process.env.NODE_ENV
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
@ -11,7 +11,7 @@ const useTracking = () => {
|
|||||||
try {
|
try {
|
||||||
axios.post('https://analytics.strapi.io/track', {
|
axios.post('https://analytics.strapi.io/track', {
|
||||||
event,
|
event,
|
||||||
properties: { ...properties, projectType: strapi.projectType },
|
properties: { ...properties, projectType: strapi.projectType, environment: process.env.NODE_ENV },
|
||||||
uuid,
|
uuid,
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user