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 .…