We want to know if it is possible to load Google Analytics or any custom JS code on my website PDF files.
We tried Zaraz, but it does not work on PDF pages. We are trying Cloudflare Workers.
The idea is to trigger GA code on PDFs whenever a request is requested from the server.
We are trying to use the content-type header to detect PDFs.
Any help is appreciated.