diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx
index 870396c..705066f 100644
--- a/apps/web/app/layout.tsx
+++ b/apps/web/app/layout.tsx
@@ -2,6 +2,7 @@ import "./globals.css";
import type { Metadata } from "next";
import type { ReactNode } from "react";
+import { Analytics } from "@/components/providers/analytics";
import { DesignSystemProvider } from "@/components/providers/client";
import { fonts } from "@/lib/fonts";
import { url } from "@/lib/url";
@@ -42,7 +43,10 @@ interface RootLayoutProps {
const RootLayout = ({ children }: RootLayoutProps) => (
- {children}
+
+ {children}
+
+
);
diff --git a/apps/web/components/mdx/elements.tsx b/apps/web/components/mdx/elements.tsx
index 8f74a32..4a2c389 100644
--- a/apps/web/components/mdx/elements.tsx
+++ b/apps/web/components/mdx/elements.tsx
@@ -129,6 +129,7 @@ export const Pre = ({
diff --git a/apps/web/components/providers/analytics.tsx b/apps/web/components/providers/analytics.tsx
new file mode 100644
index 0000000..0d842f8
--- /dev/null
+++ b/apps/web/components/providers/analytics.tsx
@@ -0,0 +1,18 @@
+import { DatabuddyDevtools } from "@databuddy/devtools/react";
+import { Databuddy } from "@databuddy/sdk/react";
+
+export const Analytics = () => (
+ <>
+
+
+ >
+);
diff --git a/apps/web/components/sections/installer.tsx b/apps/web/components/sections/installer.tsx
index 2c3cde3..ebd4b36 100644
--- a/apps/web/components/sections/installer.tsx
+++ b/apps/web/components/sections/installer.tsx
@@ -15,6 +15,7 @@ export const Installer = () => (
(
interface ShareButtonProps {
children: ReactNode;
+ channel: string;
href?: string;
onClick?: () => void;
}
@@ -43,10 +44,17 @@ const useOrigin = () =>
() => ""
);
-const ShareButton = ({ href, onClick, children }: ShareButtonProps) => {
+const ShareButton = ({
+ channel,
+ href,
+ onClick,
+ children,
+}: ShareButtonProps) => {
if (href) {
return (
{
}
return (