Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

feat: add cookie management (#11061)

Joeleb542067af9a
diff --git a/web/app/components/base/ga/index.tsx b/web/app/components/base/ga/index.tsx
index 219724113f6..0015edbfca9 100644
--- a/web/app/components/base/ga/index.tsx
+++ b/web/app/components/base/ga/index.tsx
@@ -47,6 +47,12 @@ gtag('config', '${gaIdMaps[gaType]}');
nonce={nonce!}
>
</Script>
+ {/* Cookie banner */}
+ <Script
+ id="cookieyes"
+ src='https://cdn-cookieyes.com/client_data/2a645945fcae53f8e025a2b1/script.js'
+ nonce={nonce!}
+ ></Script>
</>
)
diff --git a/web/app/signin/layout.tsx b/web/app/signin/layout.tsx
index 342876bc53e..b404c5c4de5 100644
--- a/web/app/signin/layout.tsx
+++ b/web/app/signin/layout.tsx
@@ -1,25 +1,10 @@
-import Script from 'next/script'
import Header from './_header'
import style from './page.module.css'
import cn from '@/utils/classnames'
-import { IS_CE_EDITION } from '@/config'
export default async function SignInLayout({ children }: any) {
return <>
- {!IS_CE_EDITION && (
- <>
- <Script strategy="beforeInteractive" async src={'https://www.googletagmanager.com/gtag/js?id=AW-11217955271'}></Script>
- <Script
- id="ga-monitor-register"
- dangerouslySetInnerHTML={{
- __html: 'window.dataLayer2 = window.dataLayer2 || [];function gtag(){dataLayer2.push(arguments);}gtag(\'js\', new Date());gtag(\'config\', \'AW-11217955271"\');',
- }}
- >
- </Script>
- </>
- )}
-
<div className={cn(
style.background,
'flex w-full min-h-screen',