🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
wip
Bill Yangb6d1bec814ef
diff --git a/client/src/app/layout.tsx b/client/src/app/layout.tsxindex 5dbff6dfa..751c2434a 100644--- a/client/src/app/layout.tsx+++ b/client/src/app/layout.tsx@@ -11,7 +11,6 @@ import { useStopImpersonation } from "@/hooks/useStopImpersonation";import { ReactScan } from "./ReactScan";import { OrganizationInitializer } from "../components/OrganizationInitializer";import { AuthenticationGuard } from "../components/AuthenticationGuard";-import { IS_CLOUD } from "../lib/const";const inter = Inter({ subsets: ["latin"] });@@ -21,26 +20,30 @@ export default function RootLayout({ children }: { children: React.ReactNode })return (<html lang="en" className="dark">- <head>- <Script id="gtm-script" strategy="afterInteractive">- {`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':+ {globalThis?.location?.hostname === "demo.rybbit.io" && (+ <head>+ <Script id="gtm-script" strategy="afterInteractive">+ {`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-KWZ8K6K9');`}- </Script>- </head>+ </Script>+ </head>+ )}<ReactScan /><TooltipProvider><body className={cn("bg-background text-foreground h-full", inter.className)}>- <noscript>- <iframe- src="https://www.googletagmanager.com/ns.html?id=GTM-KWZ8K6K9"- height="0"- width="0"- style={{ display: "none", visibility: "hidden" }}- />- </noscript>+ {globalThis?.location?.hostname === "demo.rybbit.io" && (+ <noscript>+ <iframe+ src="https://www.googletagmanager.com/ns.html?id=GTM-KWZ8K6K9"+ height="0"+ width="0"+ style={{ display: "none", visibility: "hidden" }}+ />+ </noscript>+ )}<QueryProvider><OrganizationInitializer /><AuthenticationGuard />