diff --git a/packages/bruno-app/src/providers/App/useTelemetry.js b/packages/bruno-app/src/providers/App/useTelemetry.js index d11a13e13..2e2c689bb 100644 --- a/packages/bruno-app/src/providers/App/useTelemetry.js +++ b/packages/bruno-app/src/providers/App/useTelemetry.js @@ -1,9 +1,16 @@ +/** + * Telemetry in bruno is just an anonymous visit counter (triggered once per day). + * The only details shared are: + * - OS (ex: mac, windows, linux) + * - Bruno Version (ex: 1.3.0) + * We don't track usage analytics / micro-interactions / crash logs / anything else. + */ + import { useEffect } from 'react'; import getConfig from 'next/config'; import { PostHog } from 'posthog-node'; import platformLib from 'platform'; import { uuid } from 'utils/common'; -import { isElectron } from 'utils/common/platform'; const { publicRuntimeConfig } = getConfig(); const posthogApiKey = 'phc_7gtqSrrdZRohiozPMLIacjzgHbUlhalW1Bu16uYijMR'; @@ -17,11 +24,6 @@ const isDevEnv = () => { return publicRuntimeConfig.ENV === 'dev'; }; -// Todo support chrome and firefox extension -const getPlatform = () => { - return isElectron() ? 'electron' : 'web'; -}; - const getPosthogClient = () => { if (posthogClient) { return posthogClient; @@ -52,13 +54,11 @@ const trackStart = () => { } const trackingId = getAnonymousTrackingId(); - const platform = getPlatform(); const client = getPosthogClient(); client.capture({ distinctId: trackingId, event: 'start', properties: { - platform: platform, os: platformLib.os.family, version: '1.3.0' }