diff --git a/app/_providers/index.tsx b/app/_providers/index.tsx
index 6eec9f9..999294c 100644
--- a/app/_providers/index.tsx
+++ b/app/_providers/index.tsx
@@ -6,6 +6,7 @@ import useRouteChange from "@/lib/hooks/useRouteChange";
import { NDKProvider } from "./ndk";
import SignerProvider from "./signer";
import { RELAYS } from "@/constants";
+import { GoogleAnalyticsInit } from "@/lib/analytics";
export function Providers({ children }: { children: React.ReactNode }) {
const handleRouteChange = (url: string) => {
@@ -24,6 +25,7 @@ export function Providers({ children }: { children: React.ReactNode }) {
{children}
+
>
);
}
diff --git a/lib/analytics/InitScript.tsx b/lib/analytics/InitScript.tsx
new file mode 100644
index 0000000..836dbdd
--- /dev/null
+++ b/lib/analytics/InitScript.tsx
@@ -0,0 +1,22 @@
+import Script from "next/script";
+
+export default function Init() {
+ return (
+ <>
+
+
+ >
+ );
+}
diff --git a/lib/analytics/index.ts b/lib/analytics/index.ts
new file mode 100644
index 0000000..fe770ed
--- /dev/null
+++ b/lib/analytics/index.ts
@@ -0,0 +1 @@
+export { default as GoogleAnalyticsInit } from "./InitScript";