mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 18:08:11 +00:00 
			
		
		
		
	Add environment property to admin telemetry calls
This commit is contained in:
		
							parent
							
								
									fe296baf71
								
							
						
					
					
						commit
						ae35914dba
					
				| @ -84,6 +84,9 @@ function App() { | ||||
|                 event: 'didInitializeAdministration', | ||||
|                 uuid, | ||||
|                 deviceId, | ||||
|                 properties: { | ||||
|                   environment: process.env.NODE_ENV | ||||
|                 } | ||||
|               }), | ||||
|               headers: { | ||||
|                 'Content-Type': 'application/json', | ||||
|  | ||||
| @ -11,7 +11,7 @@ const useTracking = () => { | ||||
|       try { | ||||
|         axios.post('https://analytics.strapi.io/track', { | ||||
|           event, | ||||
|           properties: { ...properties, projectType: strapi.projectType }, | ||||
|           properties: { ...properties, projectType: strapi.projectType, environment: process.env.NODE_ENV }, | ||||
|           uuid, | ||||
|         }); | ||||
|       } catch (err) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 ivanThePleasant
						ivanThePleasant