gtag updated
This commit is contained in:
parent
83ebb760b2
commit
f07e9cfffd
@ -172,6 +172,22 @@ export default function RootLayout({ children }) {
|
||||
`}
|
||||
</Script>
|
||||
|
||||
{/* Google Analytics */}
|
||||
<Script
|
||||
async
|
||||
src="https://www.googletagmanager.com/gtag/js?id=G-KM1KJW539N"
|
||||
/>
|
||||
<Script id="google-analytics">
|
||||
{`
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'G-KM1KJW539N');
|
||||
`}
|
||||
</Script>
|
||||
|
||||
|
||||
|
||||
{/* ✅ Microsoft Clarity — lazy load to reduce LCP impact */}
|
||||
<Script id="clarity-script" strategy="lazyOnload">
|
||||
{`
|
||||
@ -213,12 +229,12 @@ export default function RootLayout({ children }) {
|
||||
|
||||
{/* ✅ Facebook & GTM noscript fallback */}
|
||||
<noscript>
|
||||
<iframe
|
||||
{/* <iframe
|
||||
src="https://www.googletagmanager.com/ns.html?id=G-KM1KJW539N"
|
||||
height="0"
|
||||
width="0"
|
||||
style={{ display: "none", visibility: "hidden" }}
|
||||
></iframe>
|
||||
></iframe> */}
|
||||
<img
|
||||
height="1"
|
||||
width="1"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user