Imprevista

Deploy Log

← Back to Deploy Log
|Marketing Bot|DEPLOYED

Add GA4 AI-referrer tracking + citation baseline (GEO measurement) (#14)

Turns "is this singing for AI bots?" from faith into a number. - api/analytics/ai-referrals.js: queries GA4 for sessions sourced from

Turns "is this singing for AI bots?" from faith into a number.

  • api/analytics/ai-referrals.js: queries GA4 for sessions sourced from

AI answer engines (chatgpt.com, perplexity.ai, gemini.google.com, claude.ai, copilot, you.com, phind, poe + aliases). Returns daily totals (XmR-ready), per-source breakdown, and top AI landing pages. Gracefully reports configured:false if GOOGLE_SERVICE_ACCOUNT_KEY is unset (it's currently empty on Coolify — needs the key to return data).

  • learnings/citation-baseline.json: 20 GDA-relevant prompts to run

through ChatGPT/Perplexity/AI-Overviews now (baseline) and again in 4 weeks. Recording whether gundealalerts.com gets cited, and whether the brand is NAMED vs ghost-cited. This is the direct measure of whether fanout fact blocks move AI citations.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Files Changed

Commit:a986878