Repository navigation
feat(telemetry): send product analytics to our own analytics service - #129
Open
lauridskern wants to merge 1 commit into
Open
lauridskern wants to merge 1 commit into
lauridskern wants to merge 1 commit into
Conversation
Product analytics go to anal.margelo.com instead of Mixpanel's EU project. The service takes Mixpanel's ingestion API, so the requests are unchanged apart from the host and project token. Mixpanel's history up to 19 November 2026 was imported there. The privacy policy and telemetry docs name the new hosting: Vercel and MotherDuck in the United States. Releases up to 0.1.189 keep sending to Mixpanel until they update.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Product analytics now go to our own analytics service at https://anal.margelo.com instead of Mixpanel's EU project.
The service takes Mixpanel's ingestion API (
/track,/engage), so the plugin sends exactly the same requests: only the host and the project token change. Mixpanel's full history up to 19 November 2026 16:04 UTC (4.47M events and 611 installation profiles) has already been imported, so the dashboards there start with all of it.Changes
packages/shared/src/telemetry.ts:MIXPANEL_*constants becomeANALYTICS_TOKEN,ANALYTICS_TRACK_URLandANALYTICS_ENGAGE_URL, pointing atanal.margelo.comwith the sameip=0&verbose=1.packages/core/src/analytics.tsand its test use the renamed constants. Batching, opt-outs and the{ status: 1 }check are unchanged.docs/telemetry.md,PRIVACY.mdand the website privacy page describe the new service.Needs a look before merging
PRIVACY.mdsays "We do not create user profiles", while the plugin sends installation profiles (the website copy already describes them). Not changed here.Testing
node --test packages/core/test/analytics.test.ts: 6/6 pass.npm run typecheck:telemetrypasses.npm test: 1484 pass, 12 fail; the same 12 fail on unmodifiedmainin this environment (vendored runtimes and native helpers that aren't built locally)./trackand/engagewithip=0&verbose=1); it replies{"status":1,"error":null}.