diff --git a/.eslintignore b/.eslintignore index 08d61d7..2d6dd0f 100644 --- a/.eslintignore +++ b/.eslintignore @@ -5,6 +5,7 @@ .contentlayer dist tests/* +public/ .DS_Store node_modules coverage diff --git a/apps/docs/public/twitter-conversion.js b/apps/docs/public/twitter-conversion.js new file mode 100644 index 0000000..568801b --- /dev/null +++ b/apps/docs/public/twitter-conversion.js @@ -0,0 +1,15 @@ +!(function (e, t, n, s, u, a) { + e.twq || + ((s = e.twq = + function () { + s.exe ? s.exe.apply(s, arguments) : s.queue.push(arguments); + }), + (s.version = "1.1"), + (s.queue = []), + (u = t.createElement(n)), + (u.async = !0), + (u.src = "https://static.ads-twitter.com/uwt.js"), + (a = t.getElementsByTagName(n)[0]), + a.parentNode.insertBefore(u, a)); +})(window, document, "script"); +twq("config", "od8xu"); diff --git a/apps/docs/src/app/layout.tsx b/apps/docs/src/app/layout.tsx index 09569b1..d950349 100644 --- a/apps/docs/src/app/layout.tsx +++ b/apps/docs/src/app/layout.tsx @@ -9,6 +9,8 @@ import { Sidebar } from "@/components/Sidebar"; import "@/styles/globals.css"; +import Script from "next/script"; + import Fathom from "@/components/Fathom"; import Header from "@/components/Header"; @@ -28,7 +30,19 @@ export default function RootLayout({ children }: { children: React.ReactNode }) monoFont.variable )} > + {/* Analytics */} +
diff --git a/apps/docs/src/components/Fathom.tsx b/apps/docs/src/components/Fathom.tsx index 077b67f..69e2e03 100644 --- a/apps/docs/src/components/Fathom.tsx +++ b/apps/docs/src/components/Fathom.tsx @@ -9,9 +9,7 @@ function TrackPageView() { const pathname = usePathname(); const searchParams = useSearchParams(); useEffect(() => { - load("VDTVBMMX", { - includedDomains: ["lemonsqueezy.com"], - }); + load("VDTVBMMX"); }, []); useEffect(() => {