Unverified Commit bdc5e9ce authored by Joel's avatar Joel Committed by GitHub

chore: test register ga (#2202)

parent f2b2effc
......@@ -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>
</>
)}
</>
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment