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.
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
- 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
| Decision | Alternative considered | Why |
|---|---|---|
| Local app | A SaaS dashboard | Data stays local and it costs nothing |
| Per-source fault isolation | One combined fetch | One expired token shouldn't blank the page |
| ShopifyQL for revenue | GA4 revenue | GA4 under-counts orders |
06Failure modes
| Risk | Mitigation |
|---|---|
| Meta token invalidated | The Ads tab shows a reconnect state instead of failing |
| Missing order scopes | GA4 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