A site built in Kirby has links to PDFs. For example at the bottom of this page (https://dignityinpractice.org/starting/step-3), there is a text link “Click here to access the PDF activity guide”.
But rather than link to the PDF it links to this:
https://dignityinpractice.org/@/file/1tE1Brb8zJxj1BRX
I am using Plausible Analytics and need to record the number of times the PDFs are downloaded. But because the links generated to a PDF by Kirby do not have the .pdf suffix Plausible can’t track it.
I’ve had the following info from Plausible:
The reason why you cannot track file downloads is because you don’t link to the actual file, but instead to a link that opens the file and a link that redirects to a file cannot be tracked using file downloads. It has to be a direct link to a file and it doesn’t matter if it downloads the file or displays it in the browser.
How do I get Kirby to link to the actual file?