|
1 | 1 | import './global.css'; |
2 | | -import { Databuddy } from '@databuddy/sdk'; |
| 2 | +import { Databuddy } from '@databuddy/sdk/react'; |
3 | 3 | import { RootProvider } from 'fumadocs-ui/provider'; |
4 | 4 | import type { Metadata, Viewport } from 'next'; |
5 | 5 | import { Geist, Geist_Mono, Manrope } from 'next/font/google'; |
6 | | -import Head from 'next/head'; |
7 | | -import Script from 'next/script'; |
8 | 6 | import { ThemeProvider } from 'next-themes'; |
9 | 7 | import type { ReactNode } from 'react'; |
10 | 8 | import { Toaster } from '@/components/ui/sonner'; |
@@ -93,21 +91,7 @@ export default function Layout({ children }: { children: ReactNode }) { |
93 | 91 | lang="en" |
94 | 92 | suppressHydrationWarning |
95 | 93 | > |
96 | | - <Script |
97 | | - async |
98 | | - data-client-id="OXmNQsViBT-FOS_wZCTHc" |
99 | | - data-track-attributes={true} |
100 | | - data-track-errors={true} |
101 | | - data-track-outgoing-links={true} |
102 | | - data-track-web-vitals={true} |
103 | | - src="https://cdn.databuddy.cc/databuddy.js" |
104 | | - strategy="afterInteractive" |
105 | | - /> |
106 | | - <Databuddy clientId="OXmNQsViBT-FOS_wZCTHc" /> |
107 | | - <Head> |
108 | | - <link href="https://icons.duckduckgo.com" rel="preconnect" /> |
109 | | - <link href="https://icons.duckduckgo.com" rel="dns-prefetch" /> |
110 | | - </Head> |
| 94 | + <Databuddy clientId="OXmNQsViBT-FOS_wZCTHc" trackErrors trackAttributes trackOutgoingLinks trackWebVitals/> |
111 | 95 | <body> |
112 | 96 | <ThemeProvider attribute="class" defaultTheme="system" enableSystem> |
113 | 97 | <RootProvider> |
|
0 commit comments