A URL disappears from your second CSV export. Does that mean its clicks fell to zero?
You cannot tell from that absence alone. Google documents a 1,000-row limit for Search Console report exports. A missing row may sit outside the exported selection.
If you replace it with zero during a join, your code turns a gap in the evidence into an apparent traffic loss.
Here is a small JavaScript example that keeps the distinction visible. It starts with validated URL/count pairs after CSV parsing. The values are synthetic.
const before = new Map([ ['https://example.com/guide', 120], ['https://example.com/old', 8], ['https://example.com/zero', 0], ]); const after = new Map([ ['https://example.com/guide', 72], ['https://example.com/new', 10], ['https://example.com/zero', 2], ]); const rows = [...new Set([...before.keys(), ...after.keys()])] .map(url => { const complete = before.has(url) && after.has(url); return { url, before: before.get(url) ?? null, after: after.get(url) ?? null, delta: complete ? after.get(url) - before.get(url) : null, }; }); console.table(rows); The guide gets a difference of -48. The old and new URLs get null, because each lacks one period. The zero-baseline URL gets +2: an explicit zero is still a known value.
Map.get() returns undefined when a key is absent. Using ?? null makes that absence explicit in the output while preserving zero.
The example assumes that zero is an actual count. Google's export documentation also says that unavailable values shown as ~ or - can become zeros in a download. Check your source's conventions: a join cannot recover a distinction that the export has already removed.
Validate counts and reject duplicate URLs before constructing the maps: a Map would otherwise keep the latest value for a repeated key. Keep a coverage label in any exported report so that a blank value remains distinguishable from zero. Also check periods and filters before interpreting a difference.
This note was prepared with an AI assistant. The included example was executed with Node.js, using the synthetic values shown above.

