mirror of
https://github.com/langgenius/dify.git
synced 2026-07-26 06:08:38 +08:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: GareArc <garethcxy@dify.ai>
20 lines
589 B
TypeScript
20 lines
589 B
TypeScript
'use client'
|
|
|
|
import AmplitudeProvider from '@/app/components/base/amplitude'
|
|
import ExternalAttributionRecorder from '@/app/components/external-attribution-recorder'
|
|
import { usePathname } from '@/next/navigation'
|
|
import { CookieYesConsentBridge } from './cookieyes-consent-bridge'
|
|
import { isCloudAnalyticsPath } from './request-boundary'
|
|
|
|
export function CloudAnalyticsRuntime() {
|
|
const pathname = usePathname()
|
|
|
|
return (
|
|
<>
|
|
<CookieYesConsentBridge />
|
|
<AmplitudeProvider active={isCloudAnalyticsPath(pathname)} />
|
|
<ExternalAttributionRecorder />
|
|
</>
|
|
)
|
|
}
|