This commit is contained in:
akash 2025-11-15 20:14:05 +05:30
commit 52b425a1f1

View File

@ -172,6 +172,22 @@ export default function RootLayout({ children }) {
`} `}
</Script> </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 */} {/* ✅ Microsoft Clarity — lazy load to reduce LCP impact */}
<Script id="clarity-script" strategy="lazyOnload"> <Script id="clarity-script" strategy="lazyOnload">
{` {`
@ -213,12 +229,12 @@ export default function RootLayout({ children }) {
{/* ✅ Facebook & GTM noscript fallback */} {/* ✅ Facebook & GTM noscript fallback */}
<noscript> <noscript>
<iframe {/* <iframe
src="https://www.googletagmanager.com/ns.html?id=G-KM1KJW539N" src="https://www.googletagmanager.com/ns.html?id=G-KM1KJW539N"
height="0" height="0"
width="0" width="0"
style={{ display: "none", visibility: "hidden" }} style={{ display: "none", visibility: "hidden" }}
></iframe> ></iframe> */}
<img <img
height="1" height="1"
width="1" width="1"