[BF-031] 隐私友好的 analytics taxonomy - #90
Merged
baixiangcpp merged 1 commit intoJun 22, 2026
Merged
Conversation
Deploying byteflow with
|
| Latest commit: |
605ac06
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://bce07d9d.byteflow-c58.pages.dev |
| Branch Preview URL: | https://feat-bf-031-privacy-preservi.byteflow-c58.pages.dev |
baixiangcpp
force-pushed
the
feat/BF-031-privacy-preserving-analytics-taxonomy
branch
from
June 22, 2026 17:34
6f3b237 to
605ac06
Compare
baixiangcpp
deleted the
feat/BF-031-privacy-preserving-analytics-taxonomy
branch
June 22, 2026 17:46
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.
Issue
Closes #56
Scope
Implementation
src/core/analytics/taxonomy.jsonwith allowlisted events, allowed params, forbidden params, and bucket names.src/core/analytics/analytics.tsinto a typed no-op facade that only builds allowlisted payloads.scripts/gates/check-analytics-taxonomy.jsand added guard tests for allowed events, forbidden params, docs, and source usage.docs/privacy/analytics-taxonomy.mdand localized Privacy / Trust Center analytics copy foren,zh-CN,zh-TW,ja,ko,de, andfr.Acceptance Criteria
npm run check:analytics-taxonomy通过。npm run validate通过。npm run build通过。Validation
npm run lint- PASSnpm run test- PASS, 224 files / 1124 testsnpm run validate- PASS, includingcheck:analytics-taxonomy,check:i18n,check:i18n-qa,check:privacy-copy, security, SEO, OG, bundle, and type gatesnpm run build- PASS, generated 1401 static pages; canonical/hreflang, metadata localization, JSON-LD, rendered i18n copy, and localized content gates passednpm run test:e2e:smoke- PASSnpm run test:e2e:pwa- PASS, including service worker, cache buckets, offline fallback, and manual cache clearnpm run check:analytics-taxonomy- PASSManual Checks
trackEvent,trackCTA,trackToolUsage,trackPageView,trackSeoLanding.Privacy Check
Screenshots / Evidence