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.

chore: test register ga (#2202)

Joelbdc5e9ceb0c7
diff --git a/web/app/components/base/ga/index.tsx b/web/app/components/base/ga/index.tsx
index 1f894c457da..67cd1e893dc 100644
--- a/web/app/components/base/ga/index.tsx
+++ b/web/app/components/base/ga/index.tsx
@@ -38,7 +38,23 @@ gtag('config', '${gaIdMaps[gaType]}');
}}
>
</Script>
-
+ {gaType === GaType.admin && (
+ <>
+ <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>
+ </>
+ )}
</>
)