How to manage and track downloads in WordPress
WordPress can upload files and create download links, but it does not provide a native download report in the dashboard. Use GA4 for basic file-download events, or install a download manager when you need organised files, access controls, counts and reports.
- 01Decide what you need to measure
- 02Upload and publish each file
- 03Enable basic download tracking
- 04Add controls when files are private
- 05Check the numbers and links
- 06Use a download manager for speed
What you need
- A WordPress site with administrator or editor access
- The files you want to publish
- A Google Analytics 4 property if you want click tracking
Decide what you need to measure
Separate three jobs before choosing a setup: publishing files, counting download clicks, and restricting or recording access. A public PDF library may only need the Media Library and GA4. Member-only files, per-file reports, user records, categories or expiring access need a download-management plugin.
Remember that an analytics download event normally records a link click, not proof that the file finished downloading. Privacy settings, blocked scripts, cached pages and interrupted transfers can make the figures differ from server or plugin records.
Upload and publish each file
Go to Media and upload the file, then open the page or post where it should appear. Add a File block, choose the file from the Media Library, and decide whether the block should link directly to the media file or to its attachment page. You can show or hide the download button and edit its label.
Use a clear filename and link label, such as Download the 2026 price list (PDF). Test the published link in a private browser window. A common mistake is linking to the attachment page when visitors need the actual file, or replacing the file without checking old links.
Enable basic download tracking
In your GA4 web data stream, enable Enhanced Measurement and make sure file downloads are enabled. GA4 can then record a file_download event when someone clicks a link to a recognised document, compressed file, video, audio or other common file extension. Review the event in your Analytics reports and use parameters such as the file name, extension and URL to separate files.
This manual route is fine for a small public site. It does not create download totals inside WordPress, does not reliably cover links that redirect through extensionless URLs, and will miss visitors whose browsers or privacy tools prevent Analytics from running.
Add controls when files are private
Do not rely on hiding a file link for confidential material. A Media Library URL can be copied and shared, so use a system that checks the visitor before serving the file when you need logged-in users, roles, memberships or other restrictions.
For a small public collection, the Media Library plus GA4 is usually enough. For protected downloads, categories, shortcodes, per-file counters, user-level records or reports, a download manager is the practical route. If you record user IDs, IP addresses or dates, document that tracking in your privacy information and keep only what you need.
Check the numbers and links
Download one file from a desktop browser and a phone, then confirm that the file opens or saves correctly and that the event appears in GA4. Also test PDFs that open in the browser, ZIP files, renamed files and any links that pass through a landing page or email form.
Keep a simple list of published files and their URLs. When you replace a file, update the existing media item or redirect the old URL where appropriate. Otherwise, old pages, search results and campaign emails may continue pointing to a missing or untracked file.
Use a download manager for speed
If you need one place to organise files, add access controls, display styled download links and view reports, use a download-management plugin instead of assembling several separate tools. Download Monitor Page fits this route with download pages, tracking, access controls, reports, shortcode placement and support for common file types.
That is the fast way for a site with more than a few public links: install and activate the plugin, add each file through its download interface, configure access and tracking, place the generated link or shortcode on your pages, then test one logged-in and one logged-out visit.
Let Download Monitor Page do it
Combines download pages, access controls, tracking, and reports for sites that need more than basic file links.
Sources
- support.google.com /analytics/answer/9234069?hl=en&utm_source=openai
- wordpress.org /documentation/article/file-block/?utm_source=openai
- developers.google.com /analytics/devguides/collection/ga4/events?hl=en&utm_source=…
- support.google.com /analytics/thread/404088422/underreporting?hl=en&utm_source=…
- wordpress.org /documentation/article/media-library-screen/?utm_source=open…
Questions
- Does WordPress track file downloads by itself?
- No, WordPress can store files and create links to them, but it does not provide a native download-statistics report in the dashboard. For basic measurement, connect GA4 and enable Enhanced Measurement. For WordPress-based counts, access rules, user records or reports, use a download-management plugin rather than ordinary Media Library links.
- Does GA4 count completed downloads or clicks?
- GA4’s standard file-download event records a click on a link leading to a recognised file type, not confirmation that the transfer completed. It can therefore include interrupted downloads and miss downloads from blocked scripts, extensionless redirect URLs or unsupported file types. Treat it as an engagement measure, not an exact server-side total.
- Why is my PDF download missing from GA4?
- A PDF download can be missing when Enhanced Measurement is disabled, the link points to a landing page rather than a URL ending in a recognised file extension, the event has not collected enough data yet, or the visitor blocks Analytics. Check the published link, confirm the file-download setting, and test the event with a direct PDF link.
- Can I restrict a WordPress download to logged-in users?
- Yes, but an ordinary Media Library link does not provide dependable access control because the file URL can be copied and shared. Use a download manager or a properly configured membership system that checks permissions before serving the file. Test both logged-in and logged-out sessions, including an old copied URL, before treating the file as private.
- Should I use a plugin to manage downloads?
- Use a plugin when you need more than a public link and a basic GA4 event. A download manager is worthwhile for organised file libraries, access rules, styled buttons, shortcodes, download counts, user activity or reports. For a handful of unrestricted PDFs, the manual Media Library and GA4 route is simpler and usually sufficient.