Martijn Hoogeveen
01 Software · SW-07

Marketing Intelligence Dashboard

One command centre for search, ads, email, messaging and sales, with an AI analyst that proposes fixes and writes them to the store once I approve.

Ticket
SW-07
Type
Internal tool · Analytics
Status
Local
Owner
Martijn Hoogeveen
Started
Apr 2026

01Problem statement

Performance data was split across GA4, Search Console, Google Ads, Meta, Shopify, email and messaging: seven logins and no single answer to 'what's working?'. Worse, the numbers disagreed: GA4 under-counted real orders (6 vs 11 over 30 days). Finding the SEO fixes worth making took hours of cross-referencing.

02Goals

In scope

  • One view per channel
  • Each data source independent
  • AI analysis with a human approving every write

Out of scope

  • Replacing the ad managers
  • Public hosting: it runs locally

03Acceptance criteria

  • The overview renders even when a source fails
  • 15-minute cache per source
  • Revenue from Shopify when available, GA4 as a labelled fallback
  • AI suggestions only write after approval

04Design

  • Next.js app router with a hub layer: one fetcher and cache per source
  • One Google OAuth token covers Search Console, GA4, Ads and Merchant Center
  • ShopifyQL for sales, funnels and top products
  • Claude produces analysis; approve and apply writes SEO fixes through the Admin API
SOURCESapplyGA4Search ConsoleGoogle AdsShopifyQLEmail statsHub15-min cache / sourceViewsNext.jsAI analystClaudeApprovehumanShopifySEO writessources fail independently · page always renders
Fig. 1 · System architecture
Sources
GA4 · Search Console · Google Ads · ShopifyQL · email · messaging
Views
Overview, Search, Ads, Email, Messaging
Caching
15 min per source, failures isolated
AI analyst
Critical fixes, quick wins, content gaps, growth ideas
Write-back
Approve → SEO fixes applied through the Admin API
Schedule
Recurring analysis on a timer

05Key decisions

DecisionAlternative consideredWhy
Local appA SaaS dashboardData stays local and it costs nothing
Per-source fault isolationOne combined fetchOne expired token shouldn't blank the page
ShopifyQL for revenueGA4 revenueGA4 under-counts orders

06Failure modes

RiskMitigation
Meta token invalidatedThe Ads tab shows a reconnect state instead of failing
Missing order scopesGA4 fallback with a visible banner

07Testing & rollout

Testing

  • Each source checked with its token removed
  • Totals cross-checked against Shopify admin

Rollout

  • Daily use on the owner's machine

08Outcome

  • Overview, Email, Messaging, Search and Ads in one local app

09Follow-ups

  • Reconnect Meta with a system-user token
  • Add Shopify order scopes for exact revenue

Labels

  • Next.js 14
  • TypeScript
  • GA4 Data API
  • Search Console
  • Google Ads API
  • ShopifyQL
  • Claude
  • Data integration
  • Analytics
  • Caching
  • Fault isolation
  • Human-in-the-loop
  • Full-stack