diff --git a/src/client/features/ai-mcp/AvailableTools.tsx b/src/client/features/ai-mcp/AvailableTools.tsx index 31f4cfa..97d6881 100644 --- a/src/client/features/ai-mcp/AvailableTools.tsx +++ b/src/client/features/ai-mcp/AvailableTools.tsx @@ -207,10 +207,18 @@ const toolCategories: ToolCategory[] = [ }, ]; +// Google hasn't approved the GA4 OAuth app yet, so connecting fails. +// Flip to false once the app is approved. +const GA4_TOOLS_HIDDEN = true; + +const visibleCategories = GA4_TOOLS_HIDDEN + ? toolCategories.filter((cat) => cat.label !== "Google Analytics") + : toolCategories; + export function AvailableTools() { return (
- {toolCategories.map((cat) => ( + {visibleCategories.map((cat) => (

{cat.label} diff --git a/src/client/features/dashboard/DashboardPage.tsx b/src/client/features/dashboard/DashboardPage.tsx index 598b0b9..de98772 100644 --- a/src/client/features/dashboard/DashboardPage.tsx +++ b/src/client/features/dashboard/DashboardPage.tsx @@ -27,6 +27,10 @@ import { import { setProjectDomain } from "@/serverFunctions/projects"; import type { DashboardHeroStep } from "@/types/schemas/dashboard"; +// Google hasn't approved the GA4 OAuth app yet, so connecting fails. +// Flip to false once the app is approved. +const GA4_CARD_HIDDEN = true; + const HERO_COPY: Record< DashboardHeroStep, { title: string; body: string; cta: string } @@ -332,7 +336,8 @@ export function DashboardPage({ projectId }: { projectId: string }) { hasData: gscConnected, node: , }, - ...(ga4Connected || !activation.ga4.cardDismissedAt + ...(!GA4_CARD_HIDDEN && + (ga4Connected || !activation.ga4.cardDismissedAt) ? [ { key: "ga4",