Last updated 15 June 2015. Created on 1 June 2012.
Edited by omar, berliner, iwhitcomb, Martin Mayer. Log in to edit this page.

Files available for download can be valuable assets, and as such it can be advantageous to track downloads with in-depth analytics. This can be accomplished by providing a gateway step before file download to ask for an anonymous user's e-mail address and/or other information. Once the anonymous user's response is validated, the file becomes available through a direct download or a link on a secure page.

A number of file management modules implement a solution similar to this, and what follows is a chart comparing them to one another.

Name D7 D6 File Field support Configurable fields Collects e-mail addresses Download link in e-mail Downloadable statistics
Download Count Yes Yes Yes N/A N/A N/A Yes
Email Download Planned Yes No Yes Yes No No
File Download Form Planned Yes Yes No Yes Yes Yes
FileField Track Yes Yes Yes No Yes No No
Webform Protected Downloads Yes Yes Yes1 Yes Yes Yes2 No
FileField Mail Yes No Yes Yes Yes Yes No
Webform Private File Gateway Yes No Yes Yes Yes Yes Planned
Track da files Yes No Yes Yes No No Yes

1 Available in the Drupal 7 version of the module.
2 No direct download link, but a link to a protected downloads page is available.

Looking for support? Visit the forums, or join #drupal-support in IRC.


Ben Howes’s picture

I ended up here after looking for "drupal gated content", with gated content being the marketers term for this. There's an unmaintained sandbox project as the top result at the moment.

ngocketit’s picture

I created another module Webform Gated File of the same kind but it has greater flexibility as you can select individual file to protect right on the upload form. Both private & public files can be protected. The module is now still a sandbox project but if you find it useful, I can apply for the review to get it to the official project. It's nonetheless fully functional.

omar’s picture

... since this an important distinguishing factor in how files are treated by Drupal.