mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 19:36:53 +08:00
chore: test register ga (#2202)
This commit is contained in:
@@ -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>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user