mirror of
https://github.com/langgenius/dify.git
synced 2026-08-30 12:35:37 +08:00
| .. | ||
| __tests__ | ||
| cloud-analytics-runtime.tsx | ||
| cloud-analytics.tsx | ||
| consent-store.ts | ||
| cookieyes-consent-bridge.tsx | ||
| README.md | ||
| request-boundary.ts | ||
Analytics Consent
This module owns CookieYes consent state and the Dify Cloud analytics boundary.
request-boundary.tsdecides whether a request is eligible for Cloud analytics before client code mounts.cookieyes-consent-bridge.tsxis the only CookieYes-to-application state adapter.consent-store.tsowns the client consent snapshot; analytics consumers must gate SDK activation or event emission on that snapshot.cloud-analytics.tsxgates analytics scripts and runtime mounting by deployment, environment, host, and route.cloud-analytics-runtime.tsxmounts the consent bridge and client analytics consumers.
Amplitude, Google Analytics, attribution, and other consumers must depend on this boundary instead of reading CookieYes state directly.