mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 18:49:01 +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>
|
</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…
x
Reference in New Issue
Block a user