Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segregate centralized analytics per environment #21974

Open
ilmotta opened this issue Jan 22, 2025 · 0 comments · May be fixed by #21975
Open

Segregate centralized analytics per environment #21974

ilmotta opened this issue Jan 22, 2025 · 0 comments · May be fixed by #21975
Assignees
Milestone

Comments

@ilmotta
Copy link
Contributor

ilmotta commented Jan 22, 2025

Problem

We found in MixPanel a concerning number of events being published from builds that appear to come from non-production usage. Instead of relying on internal conventions with CCs while they develop/test in their own machines or when using PR builds, it's better to use separate MixPanel projects per environment.

Implementation

In MixPanel there are two projects we care about, production (named status-im) and test (named test.status-im).

We should inject two vars in the CI, MIXPANEL_APP_ID, MIXPANEL_TOKEN. Only release builds should use the production project, and all the rest should use the test project. The vars values are not secrets https://developer.mixpanel.com/reference/project-token, and actually the MixPanel token can be exploited, as is the case for analytics tools integrated with clients.

We could make the Status Proxy handle requests to MixPanel and that would even help with not exposing users' IP addresses directly to MixPanel if they opt-in to analytics, but this supposed improvement is outside the scope of this issue.

Acceptance Criteria

@ilmotta ilmotta added this to the 2.33.0 milestone Jan 22, 2025
@ilmotta ilmotta self-assigned this Jan 22, 2025
@ilmotta ilmotta added the infra label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

1 participant