mirror of
https://github.com/langgenius/dify.git
synced 2026-08-27 21:10:04 -04:00
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.