How to track the number of document downloads?
Document Library pro comes with an in-build downloads counter that you can use to keep track of individual document download count.
There are three ways you can track the number of document downloads:
- From the documents listed in the admin dashboard.
- By adding a download count column to your table/grid of documents.
- By enabling the ‘Download count’ option on the Single Document Page settings.
- By setting up Google Analytics event tracking for downloads.
Method 1 - Admin dashboard
In your WordPress admin dashboard, go to Documents → All Documents. Here you can see the download count for your documents in the ‘Downloads’ column. If you can’t find the ‘Downloads’ column, you might need to enable it from the screen options at the top right corner.
Note: This downloads count will not be displayed to your website visitors.
Method 2 - Adding a download count column to your table
To display the download count to your website visitors, you can add a
download_count column that will display the total number of downloads. For this, simply add the
download_count field in the shortcode and the number of downloads will start showing up in the table/grid.
Learn more about using Document Library columns.
Method 3 - Display the download count on the single document page
To display the number of downloads on the single document page, go to Document → Settings → Single Document, click on the 'Download count' checkbox and click on the Save Changes button.
Alternative method - Set up Google Analytics event tracking for downloads
Alternatively, if you want more advanced tracking, you can also set up Google Analytics. This is an excellent approach because the tracking happens outside of your website (therefore easy to maintain), and you probably already use Google Analytics to monitor your website traffic.
For setup instructions, we recommend following this tutorial from MonsterInsights or watching the video below: