Skip to content

fix(citations): exclude chatgpt-shopping rows to match the insights KPIs - #434

Merged
gkhngyk merged 1 commit into
mainfrom
fix/citations-shopping-exclusion
Jul 15, 2026
Merged

gkhngyk merged 1 commit into
mainfrom
fix/citations-shopping-exclusion

Conversation

@gkhngyk

@gkhngyk gkhngyk commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Recovers a commit orphaned by timing: #430 was merged just before this landed on its branch, so the squash didn't include it (GitHub's "recent pushes" banner on fix/citations-pagination was pointing at exactly this).

The insights aggregates exclude chatgpt-shopping (#155) but the citations scans did not, so the Citations page counted a superset of what the KPI counts — verified as the remaining source of the own-domain citation mismatch (e.g. 43 vs 25 on a 7-day window, where 18 of the 43 came from shopping rows). One-line filter in the shared scanFilteredResults scanner from #430, so the overview, gaps view, and report citations section all align with the KPIs.

Related Issue

Completes the mismatch fix started in #430; verified locally end-to-end (Citations own-domain = Insights KPI on both a shopping-off and a shopping-on brand).

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 🧹 Chore / refactor
  • 📝 Documentation
  • 🚨 Breaking change

How to Test

  1. On a brand with chatgpt-shopping results in the window, Citations totals (and the own-domain filter) match the Insights KPIs for the same range.
  2. Shopping data remains fully visible in the Shopping module — only analytical aggregates exclude it.

Checklist

  • My code follows the project's style guidelines (Prettier clean)
  • I have performed a self-review of my code
  • npx tsc --noEmit passes
  • Web tests pass (45/45)
  • Manually verified locally (the mismatch closes with this commit applied)

The insights aggregates exclude chatgpt-shopping (#155) but the
citations scans did not, so the Citations page counted a superset of
the results the KPI counts — one of the sources of the own-domain
citation mismatch.
@gkhngyk
gkhngyk merged commit 360228d into main Jul 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant