From a7f020c11fac62678bd7ad6feb086d15b05e67ea Mon Sep 17 00:00:00 2001 From: Yahia Bakour Date: Sun, 11 Oct 2026 13:23:29 -0400 Subject: [PATCH] Replace Plausible with Databuddy analytics --- README.md | 2 +- src/app/layout.tsx | 9 ++++----- src/lib/context.ts | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index da3ca79..6c71dde 100644 --- a/README.md +++ b/README.md @@ -210,7 +210,7 @@ The UI and renderer are separable from Context.dev enrichment, so you can reuse The included `/api/brief` and `/api/ad` routes invoke billable services and are intentionally callable by the browser. Before exposing your own deployment, add authentication and/or rate limiting appropriate to your audience, set provider spend alerts, and understand the cost of up to four Context.dev calls, one text-model call, and six image-model calls per uncached Ad Run. Successful responses benefit from a compatible shared CDN cache; failures use `no-store`. -The app loads [Plausible](https://plausible.io) (privacy-friendly, cookieless analytics) via a script tag in `src/app/layout.tsx`; forks should swap in their own Plausible script URL or remove the tag. The default UI also requests a Google-hosted font and Google favicon service; privacy-sensitive forks can self-host or remove those requests. +The app loads [Databuddy](https://www.databuddy.cc) (privacy-friendly, cookieless analytics) via a script tag in `src/app/layout.tsx`; forks should swap in their own Databuddy client ID or remove the tag. The default UI also requests a Google-hosted font and Google favicon service; privacy-sensitive forks can self-host or remove those requests. --- diff --git a/src/app/layout.tsx b/src/app/layout.tsx index b0056dd..6a6ee62 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -17,15 +17,14 @@ export default function RootLayout({ children }: { children: React.ReactNode }) return ( - {/* Privacy-friendly analytics by Plausible */} {children} diff --git a/src/lib/context.ts b/src/lib/context.ts index 8953182..a2878b0 100644 --- a/src/lib/context.ts +++ b/src/lib/context.ts @@ -216,7 +216,7 @@ export async function fetchProducts( const res = await client().web.extract( { url: `https://${domain}`, - schema, + schema: { ...schema }, factCheck: true, instructions: [ "Extract one to three distinct products or named services the company explicitly sells or offers.",