Diagnostic JavaScript to sniff image requests client side

160 Views Asked by At

Background: We use tracking pixels on our site to pass sales data to advertising networks we work with. Some nasty bug is resulting in bad data being recorded by our partners and we are looking for a way to diagnose. Server logs show that we are generating the correct < img > request and we're out of ideas to identify the cause of the bug...

Question: Is there a JavaScript method for sniffing the outbound client-side image requests made on our site? I.e., would it be possible to load a client-side JS that looks for image requests to a particular domain, records those requests and then sends that information to our server?

1

There are 1 best solutions below

1
On

I would use Google Chrome's build in network panel. View->Developer->Developer Tools.