Skip to content

Measure returning browsers, visits and model engagement - #69

Merged
BlackMixture merged 1 commit into
mainfrom
codex/analytics-measurement-fixes
Sep 13, 2026
Merged

BlackMixture merged 1 commit into
mainfrom
codex/analytics-measurement-fixes

Conversation

@BlackMixture

Copy link
Copy Markdown
Owner

Mix Studio's memory-only analytics identity made reloads look like unrelated users, and LTX 2.5 submissions were mislabeled as LTX 2.3. Persist a random browser ID per origin, create a fresh visit ID per page load/re-enable, and distinguish model request labels so audience reach, repeat visits, and engagement can be measured separately.

Keep the existing notice and Preferences control, update the copy for the saved ID, preserve existing opt-outs, synchronize opt-out across tabs, clear the ID on disable, and reject stale queued identities. The SDK retains memory persistence; person profiles and automatic collection stay disabled. Event filtering excludes prompts, media, URLs, device details, and arbitrary model text while preserving valid transport UUIDs for deduplication.

Add a local aggregate-report CLI and measurement documentation. Reports separate legacy identities from v2 browser counts and clearly label accepted API requests rather than completed generations. No live PostHog dashboard or production machine was changed.

Validation: 1,310 tests passed, 2 skipped; syntax and whitespace checks passed. An isolated Chrome fixture using the current real PostHog SDK intercepted all network traffic and verified two visits under one browser ID, LTX 2.5 model labeling, excluded private properties, and no requests after opt-out.

@BlackMixture
BlackMixture merged commit f40553e into main Sep 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant