From 5bb5a3400f718f80cb5bbee38c86ae8939fbbe09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hanno=20J=2E=20G=C3=B6decke?= Date: Mon, 23 Nov 2026 16:35:44 +0100 Subject: [PATCH] feat(analytics): send product analytics to Anal --- PRIVACY.md | 48 ++++++++++++++---------- docs/telemetry.md | 19 +++++----- package-lock.json | 4 +- package.json | 2 +- packages/core/src/analytics.ts | 12 +++--- packages/core/src/telemetry.ts | 2 +- packages/core/test/analytics.test.ts | 47 ++++++++++++----------- packages/shared/src/telemetry.ts | 12 +++--- packages/shared/src/version.ts | 2 +- website/src/content/docs/docs/privacy.md | 45 ++++++++++++---------- 10 files changed, 105 insertions(+), 88 deletions(-) diff --git a/PRIVACY.md b/PRIVACY.md index d2f8d12e..38733b3f 100644 --- a/PRIVACY.md +++ b/PRIVACY.md @@ -1,6 +1,6 @@ # Mobile Dev Privacy Policy -Last updated: 3 November 2026 +Last updated: 23 November 2026 ## 1. Who we are and what this policy covers @@ -62,9 +62,9 @@ Use test data, scope requests to the relevant app, and review content before sharing it. Do not provide passwords, API keys, payment-card data, health records, or government identifiers through these workflows. -Mobile Dev does not upload this development content to Callstack's Sentry or -Mixpanel projects as telemetry. This exclusion does not prevent a tool result from reaching the -host or content you deliberately email to support from reaching Callstack. +Mobile Dev excludes this development content from diagnostics and product +analytics. Tool results can still reach the host, and content you deliberately +email to support can still reach Callstack. ### Diagnostics and usage telemetry @@ -96,18 +96,22 @@ not a reason to put secrets into your test data. ### Product analytics -Release builds send basic product analytics to Mixpanel so we can see how many -installations use Mobile Dev and which tools they use most. Events record that a -host session started or that a tool was called, with the tool's name, whether it -succeeded, the host (Codex, Claude, Cursor, the Mac app or other), the plugin -version, the operating system type, a timestamp, and the random installation ID -described above. Frequent polling and input tools are not recorded. - -Analytics events never contain MCP arguments or results, app or device content, -device names or identifiers, project paths, or account details. They go to -Mixpanel's EU ingestion endpoint with IP collection turned off, so Mixpanel does -not store your IP address or derive a location from it. We do not create user -profiles, combine analytics with other data about you, or use them for advertising. +Starting with version 0.1.190, release builds send basic product analytics to Anal +at `anal.margelo.com` so we can see how many installations use Mobile Dev and which +tools they use most. Events record that a host session started or that a tool +was called, with the tool's name, whether it succeeded, the host (Codex, Claude, +Cursor, the Mac app or other), the plugin version, the operating system type, a +timestamp, and the random installation ID described above. Frequent polling and +input tools are not recorded. + +Analytics events exclude MCP arguments and results, app and device content, +device names and identifiers, project paths, and account details. Anal receives +requests with IP-derived location disabled and excludes the IP address from +analytics records. Each connected session creates or updates a pseudonymous +installation profile with the same random installation ID, host, plugin +version, and operating system type. We use this ID to link events to the +installation. We do not combine analytics with other data about you or use them +for advertising. ### Updates and support @@ -141,8 +145,11 @@ telemetry controls and the right to object. Callstack. The configured ingestion endpoints are in Sentry's German region. This alone is not a promise that every support, subprocessor, or administrative operation takes place exclusively in Germany. -- **Mixpanel:** processes the product analytics described above for Callstack, - in its EU data residency region. +- **Anal:** Margelo operates the product analytics service. Vercel hosts + ingestion and processes batches in the United States. MotherDuck stores the + analytics records. +- **Mixpanel:** earlier releases with product analytics send data to Mixpanel's + EU region. - **OpenAI or another host you use:** receives tool results and content supplied through that host. Its processing and retention are governed by your relationship with that provider, not the Sentry opt-out. @@ -168,7 +175,8 @@ and [OpenAI's privacy policy](https://openai.com/policies/privacy-policy/). | --- | --- | | Sentry errors/crashes | 90 days under our Sentry Team plan. | | Sentry performance spans and Application Metrics | 30 days under our Sentry Team plan. | -| Mixpanel product analytics | Up to 24 months, then deleted. | +| Product analytics in Anal | Contact us for the retention period that applies to your records. | +| Product analytics in Mixpanel | Up to 24 months, then deleted. | | Local live logs | Held in bounded memory buffers. A server log session expires after five minutes without reads or keep-alives; closing the session stops collection. Copies already attached to the host follow the host's retention. | | Saved performance recordings | Stored under `~/Library/Application Support/mobile-dev/recordings` until you remove them; the recording store has no automatic age-based expiry. | | TraceSift integration results/references and the chosen project folder | Stored under `~/.tracesift/integrations/mobile-dev` by default, or the corresponding `TRACE_SIFT_HOME` directory, until removed. Original profiles and the TraceSift service's own data are separate. | @@ -193,7 +201,7 @@ operating system, and your own backup tools manage their copies separately. components and prevents creation of a new installation ID. It does not delete reports already sent or disable GitHub update checks or host processing. - **Disable product analytics only:** set `MOBILE_DEV_ANALYTICS=off` (or - `DO_NOT_TRACK=1`) in the same environment and restart. Mixpanel events stop; + `DO_NOT_TRACK=1`) in the same environment and restart. Product analytics stops. Sentry error and performance reporting continues unless you also turn it off. - **Reset the installation ID:** stop Mobile Dev processes and remove only the `anonymous-user-id` file listed above. A new ID is generated on the next start diff --git a/docs/telemetry.md b/docs/telemetry.md index f354bc3c..e1a68df4 100644 --- a/docs/telemetry.md +++ b/docs/telemetry.md @@ -60,8 +60,9 @@ shell has no native Sentry SDK. ## Product analytics -Since 0.1.177, release MCP servers send basic product analytics to Mixpanel's EU -project to count installations and feature use. `instrumentProductAnalytics` +Starting with 0.1.190, release MCP servers send basic product analytics to the +Mobile Dev project in Anal to count installations and feature use. Earlier +releases from 0.1.177 send to Mixpanel's EU endpoint. `instrumentProductAnalytics` (`packages/core/src/analytics.ts`) wraps the `tools/call` handler and reports `Tool Called` with the tool name and a `success` or `error` outcome; the chat client's initialization reports `Session Started`. Every event carries only @@ -69,13 +70,13 @@ client's initialization reports `Session Started`. Every event carries only the server-owned installation ID as `distinct_id`. Tools `isFrequentTool` lists are skipped. Events are batched (50 per request, at most 500 queued), sent every 30 seconds and when the plugin closes; failed batches are dropped. Requests go to -`api-eu.mixpanel.com/track?ip=0&verbose=1`: Mixpanel neither stores nor geolocates -the IP, and reports rejected batches in its reply. +`https://anal.margelo.com/track?ip=0&verbose=1`. Anal skips IP-derived location +enrichment and reports batch acceptance in its JSON reply. Each connected session also queues an installation profile with the same `distinct_id`, `host`, `plugin_version` and `os`. Profiles are sent through -`api-eu.mixpanel.com/engage?ip=0&verbose=1` with `$ip: "0"`, so they appear in -Mixpanel's Users view without IP-derived location, names or account details. +`https://anal.margelo.com/engage?ip=0&verbose=1` with `$ip: "0"`, so they appear +in Anal's Users view without IP-derived location, names or account details. Existing events join the profile by installation ID. Profiles are pseudonymous, not a guarantee of anonymisation under data protection law. A failed profile update stays pending until the next flush; closing makes one final attempt and @@ -84,11 +85,11 @@ discards any pending update. Profile failures do not prevent event delivery. Development builds send nothing, and neither does the iOS mirror service. The choice is made when the server starts: `MOBILE_DEV_TELEMETRY=off` turns analytics off along with Sentry; `MOBILE_DEV_ANALYTICS=off` or `DO_NOT_TRACK=1` turns off only -analytics, including profile updates. `analytics.flush` counts each Mixpanel request -with `component=server` and `outcome=success` only when Mixpanel accepted the batch. +analytics, including profile updates. `analytics.flush` counts each ingestion request +with `component=server` and `outcome=success` only when the service accepts the batch. The bounded `endpoint` attribute distinguishes `track` event batches from `engage` profile updates; before installation profiles, the metric counted only event batches. -The panel UI sends nothing to Mixpanel, and its CSP is unchanged. +The MCP server handles all product analytics requests. ## Volume policy diff --git a/package-lock.json b/package-lock.json index eb0326d4..11f9d87f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mobile-dev", - "version": "0.1.189", + "version": "0.1.190", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "mobile-dev", - "version": "0.1.189", + "version": "0.1.190", "workspaces": [ "packages/shared", "packages/core", diff --git a/package.json b/package.json index b09334ce..33461316 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mobile-dev", - "version": "0.1.189", + "version": "0.1.190", "private": true, "workspaces": [ "packages/shared", diff --git a/packages/core/src/analytics.ts b/packages/core/src/analytics.ts index baf2105c..caeaff93 100644 --- a/packages/core/src/analytics.ts +++ b/packages/core/src/analytics.ts @@ -3,13 +3,13 @@ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { CallToolRequestSchema } from "@modelcontextprotocol/sdk/types.js"; import type { CallToolRequest, CallToolResult } from "@modelcontextprotocol/sdk/types.js"; import { PLUGIN_VERSION } from "@mobile-dev/shared/version.ts"; -import { isFrequentTool, MIXPANEL_TOKEN, MIXPANEL_TRACK_URL, MIXPANEL_ENGAGE_URL, TELEMETRY_INTERVAL_MS } from "@mobile-dev/shared/telemetry.ts"; +import { ANALYTICS_ENGAGE_URL, ANALYTICS_TOKEN, ANALYTICS_TRACK_URL, isFrequentTool, TELEMETRY_INTERVAL_MS } from "@mobile-dev/shared/telemetry.ts"; import type { TelemetryEnvironment, TelemetryHost } from "@mobile-dev/shared/telemetry.ts"; import { TELEMETRY_ENVIRONMENT } from "./telemetry-environment.ts"; import { getTelemetryIdentity } from "./telemetry-identity.ts"; import { recordAnalyticsFlush, serverTelemetryHost } from "./telemetry.ts"; -// Mixpanel takes at most 50 events per request; the queue stays bounded while it is unreachable. +// Bound the request size and the queue while ingestion is unavailable. const BATCH_SIZE = 50; const MAX_QUEUED = 500; @@ -54,12 +54,12 @@ async function deliver(send: Send, url: string, batch: AnalyticsEvent[] | Analyt } /** - * Sends pseudonymous product analytics to Mixpanel from release servers: connected host sessions and + * Sends pseudonymous product analytics to Anal from release servers: connected host sessions and * the tools they call, plus an installation profile with its host, plugin version and OS. Never sends * arguments, results, device details, paths or IP properties. Install before tools register. */ export function instrumentProductAnalytics(server: McpServer, options: AnalyticsOptions = {}): ProductAnalytics { - const { token = MIXPANEL_TOKEN, environment = TELEMETRY_ENVIRONMENT, userId = getTelemetryIdentity()?.userId, send = fetch } = options; + const { token = ANALYTICS_TOKEN, environment = TELEMETRY_ENVIRONMENT, userId = getTelemetryIdentity()?.userId, send = fetch } = options; if (token === "" || environment !== "release" || userId === undefined || optedOut()) return disabled; const distinctId = userId; const queue: AnalyticsEvent[] = []; @@ -71,13 +71,13 @@ export function instrumentProductAnalytics(server: McpServer, options: Analytics async function drain() { const profile = pendingProfile; if (profile !== undefined) { - const outcome = await deliver(send, MIXPANEL_ENGAGE_URL, [profile]); + const outcome = await deliver(send, ANALYTICS_ENGAGE_URL, [profile]); recordAnalyticsFlush(outcome, "engage"); if (outcome === "success" && pendingProfile === profile) pendingProfile = undefined; } while (queue.length > 0) { const batch = queue.splice(0, BATCH_SIZE); - const outcome = await deliver(send, MIXPANEL_TRACK_URL, batch); + const outcome = await deliver(send, ANALYTICS_TRACK_URL, batch); recordAnalyticsFlush(outcome, "track"); } } diff --git a/packages/core/src/telemetry.ts b/packages/core/src/telemetry.ts index 30f3f80d..8fcd96c4 100644 --- a/packages/core/src/telemetry.ts +++ b/packages/core/src/telemetry.ts @@ -122,7 +122,7 @@ export function recordTraceSiftPayload(kind: "task" | "react", bytes: number) { Sentry.metrics.gauge("tracesift.explore.payload_bytes", bytes, { unit: "byte", attributes }); } -/** Counts each batch sent to Mixpanel by whether Mixpanel accepted it. */ +/** Counts each product analytics batch by whether ingestion accepted it. */ export function recordAnalyticsFlush(outcome: "success" | "failed", endpoint: "track" | "engage") { if (process.env.MOBILE_DEV_TELEMETRY === "off") return; Sentry.metrics.count("analytics.flush", 1, { attributes: { component: "server", outcome, endpoint } }); diff --git a/packages/core/test/analytics.test.ts b/packages/core/test/analytics.test.ts index 88fb466d..9eb81799 100644 --- a/packages/core/test/analytics.test.ts +++ b/packages/core/test/analytics.test.ts @@ -6,7 +6,7 @@ import type { Envelope } from "@sentry/core"; import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { Client } from "@modelcontextprotocol/sdk/client/index.js"; import { InMemoryTransport } from "@modelcontextprotocol/sdk/inMemory.js"; -import { MIXPANEL_TRACK_URL, MIXPANEL_ENGAGE_URL, TELEMETRY_INTERVAL_MS } from "../../shared/src/telemetry.ts"; +import { ANALYTICS_TOKEN, TELEMETRY_INTERVAL_MS } from "../../shared/src/telemetry.ts"; import { PLUGIN_VERSION } from "../../shared/src/version.ts"; import { instrumentProductAnalytics } from "../src/analytics.ts"; import type { AnalyticsOptions } from "../src/analytics.ts"; @@ -14,22 +14,26 @@ import type { AnalyticsOptions } from "../src/analytics.ts"; type SentEvent = { event: string; properties: Record }; type SentProfile = { $token: string; $distinct_id: string; $ip: string; $set: Record }; -function mixpanel(status = 1) { +const TRACK_URL = "https://anal.margelo.com/track?ip=0&verbose=1"; +const ENGAGE_URL = "https://anal.margelo.com/engage?ip=0&verbose=1"; + +function ingestion(status = 1) { const requests: { url: string; body: string }[] = []; const send = async (url: string, init: RequestInit) => { const body = String(init.body); requests.push({ url, body }); - return Response.json({ error: status === 1 ? "" : "rejected", status }); + if (status === 1) return Response.json({ status, error: null }); + return Response.json({ status, error: "rejected" }, { status: 400 }); }; function events() { - const batches = requests.filter(request => request.url === MIXPANEL_TRACK_URL); + const batches = requests.filter(request => request.url === TRACK_URL); return batches.flatMap(request => { const batch: SentEvent[] = JSON.parse(request.body); return batch; }); } function profiles() { - const batches = requests.filter(request => request.url === MIXPANEL_ENGAGE_URL); + const batches = requests.filter(request => request.url === ENGAGE_URL); return batches.flatMap(request => { const batch: SentProfile[] = JSON.parse(request.body); return batch; @@ -41,7 +45,7 @@ function mixpanel(status = 1) { /** A release server with three tools, connected to a client named `clientName`. */ async function connect(options: AnalyticsOptions, clientName = "claude-code") { const server = new McpServer({ name: "test", version: "1" }); - const analytics = instrumentProductAnalytics(server, { token: "token", environment: "release", userId: "anon_1", ...options }); + const analytics = instrumentProductAnalytics(server, { environment: "release", userId: "anon_1", ...options }); server.server.oninitialized = () => { analytics.sessionStarted(server.server.getClientVersion()?.name); }; server.registerTool("mobile_logs_session", {}, async () => ({ content: [] })); server.registerTool("mobile_repair_input", {}, async () => ({ content: [], isError: true })); @@ -63,26 +67,25 @@ async function withEnv(key: string, value: string, run: () => Promise) { } } -test("product analytics joins EU installation profiles to events without IPs or content", async () => { - const { requests, send, events, profiles } = mixpanel(); +test("product analytics sends events and matching profiles to Anal without IPs or content", async () => { + const { requests, send, events, profiles } = ingestion(); const { client, analytics } = await connect({ send }); await client.callTool({ name: "mobile_logs_session", arguments: {} }); await client.callTool({ name: "mobile_repair_input", arguments: {} }); await client.close(); await analytics.close(); assert.equal(requests.length, 2); - assert.equal(requests[0].url, MIXPANEL_ENGAGE_URL); - assert.equal(requests[1].url, MIXPANEL_TRACK_URL); - assert.match(MIXPANEL_TRACK_URL, /^https:\/\/api-eu\.mixpanel\.com\/track\?(?=.*\bip=0\b)(?=.*\bverbose=1\b)/); - assert.match(MIXPANEL_ENGAGE_URL, /^https:\/\/api-eu\.mixpanel\.com\/engage\?(?=.*\bip=0\b)(?=.*\bverbose=1\b)/); + assert.equal(requests[0].url, ENGAGE_URL); + assert.equal(requests[1].url, TRACK_URL); const sentProfiles = profiles(); assert.deepEqual(sentProfiles, [{ - $token: "token", $distinct_id: "anon_1", $ip: "0", + $token: ANALYTICS_TOKEN, $distinct_id: "anon_1", $ip: "0", $set: { host: "claude", plugin_version: PLUGIN_VERSION, os: process.platform }, }]); const [session, logs, repair] = events(); assert.equal(session.event, "Session Started"); assert.equal(session.properties.host, "claude"); + assert.equal(session.properties.token, ANALYTICS_TOKEN); assert.deepEqual([logs.event, logs.properties.tool, logs.properties.outcome], ["Tool Called", "mobile_logs_session", "success"]); assert.deepEqual([repair.properties.tool, repair.properties.outcome], ["mobile_repair_input", "error"]); assert.deepEqual(Object.keys(logs.properties).sort(), ["$insert_id", "distinct_id", "host", "os", "outcome", "plugin_version", "time", "token", "tool"]); @@ -92,7 +95,7 @@ test("product analytics joins EU installation profiles to events without IPs or }); test("product analytics leaves out polling tools", async () => { - const { send, events } = mixpanel(); + const { send, events } = ingestion(); const { client, analytics } = await connect({ send }); await client.callTool({ name: "mobile_read_logs", arguments: {} }); await client.close(); @@ -101,7 +104,7 @@ test("product analytics leaves out polling tools", async () => { }); test("product analytics sends nothing in development, without a token, or when turned off", async () => { - const { send, requests } = mixpanel(); + const { send, requests } = ingestion(); async function session(options: AnalyticsOptions) { const { client, analytics } = await connect({ send, ...options }); await client.callTool({ name: "mobile_logs_session", arguments: {} }); @@ -116,14 +119,14 @@ test("product analytics sends nothing in development, without a token, or when t assert.equal(requests.length, 0); }); -test("product analytics batches at Mixpanel's limit and counts batches Mixpanel rejects as failed", async t => { +test("product analytics sends batches of at most 50 and counts rejected requests as failed", async t => { const envelopes: Envelope[] = []; Sentry.init({ dsn: "https://public@example.com/1", defaultIntegrations: false, transport: () => ({ async send(envelope) { envelopes.push(envelope); return { statusCode: 200 }; }, async flush() { return true; } }), }); t.after(async () => { await Sentry.close(); }); - const { send: record, requests } = mixpanel(0); + const { send: record, requests } = ingestion(0); const delivery = Promise.withResolvers(); const send = async (url: string, init: RequestInit) => { await delivery.promise; @@ -135,7 +138,7 @@ test("product analytics batches at Mixpanel's limit and counts batches Mixpanel const closing = analytics.close(); delivery.resolve(); await closing; - const eventRequests = requests.filter(request => request.url === MIXPANEL_TRACK_URL); + const eventRequests = requests.filter(request => request.url === TRACK_URL); const batchSizes = eventRequests.map(request => { const batch: SentEvent[] = JSON.parse(request.body); return batch.length; @@ -159,11 +162,11 @@ test("product analytics batches at Mixpanel's limit and counts batches Mixpanel test("a rejected profile retries on the existing timer without blocking events or sending after close", async t => { t.mock.timers.enable({ apis: ["setInterval"] }); - const recorded = mixpanel(); + const recorded = ingestion(); let profileAttempts = 0; const send = async (url: string, init: RequestInit) => { const response = await recorded.send(url, init); - if (url === MIXPANEL_ENGAGE_URL) { + if (url === ENGAGE_URL) { profileAttempts += 1; if (profileAttempts === 1) return Response.json({ status: 0, error: "rejected" }); } @@ -196,11 +199,11 @@ test("a rejected profile retries on the existing timer without blocking events o }); test("closing waits for an in-flight profile and flushes queued events", async () => { - const recorded = mixpanel(); + const recorded = ingestion(); const gate = Promise.withResolvers(); const send = async (url: string, init: RequestInit) => { const response = await recorded.send(url, init); - if (url === MIXPANEL_ENGAGE_URL) return gate.promise; + if (url === ENGAGE_URL) return gate.promise; return response; }; const { client, analytics } = await connect({ send }); diff --git a/packages/shared/src/telemetry.ts b/packages/shared/src/telemetry.ts index 0ea89370..d4c9a095 100644 --- a/packages/shared/src/telemetry.ts +++ b/packages/shared/src/telemetry.ts @@ -8,14 +8,14 @@ export const SENTRY_SERVER_DSN = "https://2ee03a9449e1f1b48e3e7c7606b6f562@o4512 export const SENTRY_NATIVE_DSN = "https://1deeefda39022a67df902c638dcf3c8f@o4512180958068736.ingest.de.sentry.io/4512181036318800"; export const SENTRY_ORIGIN = "https://o4512180958068736.ingest.de.sentry.io"; export const SENTRY_RELEASE = `mobile-dev@${PLUGIN_VERSION}`; -/** Public token of the EU-resident Mixpanel project for product analytics. */ -export const MIXPANEL_TOKEN = "780e4817b73c1234479ad8d418d34e89"; +/** Public token of the Mobile Dev project in Anal. */ +export const ANALYTICS_TOKEN = "8f6bad25f85f55b745a41843c257a3c6"; /** - * Mixpanel's EU ingestion endpoint. `ip=0` stops Mixpanel from storing or geolocating the sender's IP; - * `verbose=1` makes rejected batches say so, since Mixpanel answers them with HTTP 200 too. + * Anal's Mixpanel-compatible ingestion endpoints. `ip=0` disables IP-derived + * location enrichment, and `verbose=1` requests a structured JSON reply. */ -export const MIXPANEL_TRACK_URL = "https://api-eu.mixpanel.com/track?ip=0&verbose=1"; -export const MIXPANEL_ENGAGE_URL = "https://api-eu.mixpanel.com/engage?ip=0&verbose=1"; +export const ANALYTICS_TRACK_URL = "https://anal.margelo.com/track?ip=0&verbose=1"; +export const ANALYTICS_ENGAGE_URL = "https://anal.margelo.com/engage?ip=0&verbose=1"; export const TELEMETRY_META_KEY = "mobile-dev/telemetry"; export const TELEMETRY_INTERVAL_MS = 30_000; export const TELEMETRY_HOSTS = ["codex", "claude", "cursor", "mac", "other"] as const; diff --git a/packages/shared/src/version.ts b/packages/shared/src/version.ts index e9d21bcd..0708860b 100644 --- a/packages/shared/src/version.ts +++ b/packages/shared/src/version.ts @@ -1 +1 @@ -export const PLUGIN_VERSION = "0.1.189"; +export const PLUGIN_VERSION = "0.1.190"; diff --git a/website/src/content/docs/docs/privacy.md b/website/src/content/docs/docs/privacy.md index 111d7267..16bc9c4d 100644 --- a/website/src/content/docs/docs/privacy.md +++ b/website/src/content/docs/docs/privacy.md @@ -3,7 +3,7 @@ title: Privacy Policy description: Read how Mobile Dev processes local development data, shares results with your host, collects diagnostics, and provides privacy controls. --- -Last updated: 5 November 2026 +Last updated: 23 November 2026 ## 1. Who we are and what this policy covers @@ -71,9 +71,9 @@ Use test data, scope requests to the relevant app, and review content before sharing it. Do not provide passwords, API keys, payment-card data, health records, or government identifiers through these workflows. -Mobile Dev does not upload this development content to Callstack's Sentry or -Mixpanel projects as telemetry. This exclusion does not prevent a tool result from reaching the -host or content you deliberately email to support from reaching Callstack. +Mobile Dev excludes this development content from diagnostics and product +analytics. Tool results can still reach the host, and content you deliberately +email to support can still reach Callstack. ### Diagnostics and usage telemetry @@ -106,20 +106,21 @@ not a reason to put secrets into your test data. ### Product analytics -Release builds send basic product analytics to Mixpanel so we can see how many -installations use Mobile Dev and which tools they use most. Events record that a -host session started or that a tool was called, with the tool's name, whether it -succeeded, the host (Codex, Claude, Cursor, the Mac app or other), the plugin -version, the operating system type, a timestamp, and the random installation ID -described above. Frequent polling and input tools are not recorded. - -Analytics events never contain MCP arguments or results, app or device content, -device names or identifiers, project paths, or account details. They go to -Mixpanel's EU ingestion endpoint with IP collection turned off, so Mixpanel does -not derive a location from your IP address or store it in your analytics records. +Starting with version 0.1.190, release builds send basic product analytics to Anal +at `anal.margelo.com` so we can see how many installations use Mobile Dev and which +tools they use most. Events record that a host session started or that a tool +was called, with the tool's name, whether it succeeded, the host (Codex, Claude, +Cursor, the Mac app or other), the plugin version, the operating system type, a +timestamp, and the random installation ID described above. Frequent polling and +input tools are not recorded. + +Analytics events exclude MCP arguments and results, app and device content, +device names and identifiers, project paths, and account details. Anal receives +requests with IP-derived location disabled and excludes the IP address from +analytics records. Each connected session also creates or updates a pseudonymous installation profile using that same random installation ID, host, plugin version, and operating system -type. This lets us view the installation's existing events together in Mixpanel. +type. We use this ID to link events to the installation. Profiles contain no names, email addresses or account details. A persistent ID and usage history are not a guarantee of anonymisation. We do not combine these analytics with other data about you or use them for advertising. @@ -156,8 +157,11 @@ telemetry controls and the right to object. Callstack. The configured ingestion endpoints are in Sentry's German region. This alone is not a promise that every support, subprocessor, or administrative operation takes place exclusively in Germany. -- **Mixpanel:** processes the product analytics described above for Callstack, - in its EU data residency region. +- **Anal:** Margelo operates the product analytics service. Vercel hosts + ingestion and processes batches in the United States. MotherDuck stores the + analytics records. +- **Mixpanel:** earlier releases with product analytics send data to Mixpanel's + EU region. - **OpenAI or another host you use:** receives tool results and content supplied through that host. Its processing and retention are governed by your relationship with that provider, not the Sentry opt-out. @@ -183,7 +187,8 @@ and [OpenAI's privacy policy](https://openai.com/policies/privacy-policy/). | --- | --- | | Sentry errors/crashes | 90 days under our Sentry Team plan. | | Sentry performance spans and Application Metrics | 30 days under our Sentry Team plan. | -| Mixpanel product analytics | Up to 24 months, then deleted. | +| Product analytics in Anal | Contact us for the retention period that applies to your records. | +| Product analytics in Mixpanel | Up to 24 months, then deleted. | | Local live logs | Held in bounded memory buffers. A server log session expires after five minutes without reads or keep-alives; closing the session stops collection. Copies already attached to the host follow the host's retention. | | Saved App Intelligence graphs and project history | Stored under `~/Library/Application Support/mobile-dev/app-intelligence` until you clear a graph or remove the files. Clearing a graph keeps the project in the recent-project list. | | Testing Studio project history and unsaved recordings | Stored under `~/Library/Application Support/mobile-dev/testing` until you delete a recording or remove the files. Saving a recording into the project removes the local draft it replaced; the draft store keeps at most 30 recordings. Tests saved into the project's `tests/` folder follow your repository's retention. | @@ -208,7 +213,7 @@ operating system, and your own backup tools manage their copies separately. components and prevents creation of a new installation ID. It does not delete reports already sent or disable GitHub update checks or host processing. - **Disable product analytics only:** set `MOBILE_DEV_ANALYTICS=off` (or - `DO_NOT_TRACK=1`) in the same environment and restart. Mixpanel events stop; + `DO_NOT_TRACK=1`) in the same environment and restart. Product analytics stops. Sentry error and performance reporting continues unless you also turn it off. - **Reset the installation ID:** stop Mobile Dev processes and remove only the `anonymous-user-id` file listed above. A new ID is generated on the next start