How can I track product purchases using specific discount codes?

Thanks for letting us know.

So it looks like the Sales by discount report displaying N/A for Customer Name and Email fields is expected to appear for orders received after January 6th 2023. Order data before this date may display Customer fields as expected. A workaround would be to add the Order name column and manually locate customer data from order.