mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-11-30 10:18:13 +08:00
chore: test register ga (#2202)
This commit is contained in:
parent
f2b2effc4b
commit
bdc5e9ceb0
@ -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>
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user