Pyxis: product analytics without cookies, IP addresses or personal data
说明与用途
Pyxis 是一个开源分析系统,能够在不存储 cookie、IP 地址或个人数据的情况下跟踪用户行为,提供详细的产品分析并尊重隐私信号。
问题
The author needed product analytics for BolsoVerde without storing cookies, IP addresses, or personal data, and without relying on third‑party tools that require user consent.
结果
Pyxis enabled the author to collect detailed product analytics without storing cookies, IP addresses, or personal data, while keeping all data within the existing infrastructure and respecting user privacy signals.
工作流
- 1. Generate a random session ID in sessionStorage for each visit.
- 2. Template the page URL by replacing identifiers with ":id" and removing sensitive segments.
- 3. Drop query string parameters except UTM fields and flag ad click sources.
- 4. Read IP address only to determine country/state, then discard it.
- 5. Classify and discard user agent information; block automation browsers.
- 6. Filter event properties to remove emails, phone numbers, CPF/CNPJ, and other personal data.
- 7. Respect Do Not Track and Global Privacy Control signals before queuing events.
- 8. Send events to the Pyxis API, which re‑templates paths and enforces the same privacy rules.
- 9. Run a daily job to delete data older than 13 months.
- 10. Use the analytics dashboard to view funnels, feature usage, and failed requests per visit.
证据
I wrote Pyxis, open‑source product analytics that writes no cookie, keeps no IP address and keeps no personal data.
The function that builds the template applies it to each segment and replaces anything that is an identifier with ":id".
The API templates every path again with the same rules, drops properties that look like personal data and refuses the whole event when the user id looks like an email address or a document number.
- 记录日期: 2026-10-24T15:11:18.974Z