Which of your documents do people actually download? It sounds like a simple question, but analytics tools often get the answer wrong.
Why analytics tools undercount downloads
Google Analytics 4 can record file downloads, but only when a visitor clicks a link to a file on a page that’s running the tracking code. That leaves gaps:
- Links in emails, PDFs, chat messages and QR codes go straight to the file, with no page and no tracking code.
- Visitors who decline analytics cookies, or use an ad or tracker blocker, aren’t counted.
- Bookmarked and shared file addresses bypass your pages entirely.
The result is a download count that’s lower than reality, and sometimes much lower.
Count downloads on the server instead
The reliable approach is to count each download when the file is actually sent. That means serving documents through WordPress rather than straight from /wp-content/uploads/, so every request is recorded, wherever the link was clicked.
It also keeps the data on your own site. There’s nothing to set up in a third-party dashboard, and no extra tracking script for visitors to consent to.
Tracking downloads with DocVault
DocVault serves every document through its own download link and counts each download automatically. There’s nothing to configure.
In the admin
- The Downloads column in the Documents list shows the count for every document, and you can sort by it.
- Each document’s Download Statistics box shows its total downloads.
On your site
- Add a Downloads column to the document list with
[trdv_list show_count="true"]. - Sort the list by popularity with
[trdv_list orderby="downloads"]. - Turn on Show download count in the DocVault block settings.
Opening a PDF in the browser with the View button isn’t counted as a download, so the figures reflect actual downloads.
Going further with DocVault Pro
DocVault Pro adds a Download Analytics box to each document:
- Downloads by version, so you can see whether people are getting the latest file.
- Recent downloads with the date, version, user (or Guest) and IP address.
Pro’s Document Activity dashboard widget shows total downloads across your library.
A note on privacy
Server-side tracking records the downloader’s IP address, browser details and, if they’re logged in, their user account, stored in your own database. Mention download tracking in your privacy policy. DocVault works with WordPress’s personal data export and erasure tools, so you can handle data requests from Tools → Export Personal Data and Tools → Erase Personal Data. Permanently deleting a document also deletes its download history.
