Just browse through the topic I've linked - it's explained there.
EDIT:
In particular:
The Pi-hole Query Log
You can view the log in real time as it happens using
pihole -t
. Run this command while you browse to the site that is showing ads. As the page loads up, watch the output in your terminal to track down what domains are being queried.
(quoted directly from that topic)