I need to track downloads of a particular file posted on my site. I have the google analytics plugin, but it doesn't track the downloads. Help!
I need to get this up and running quickly.
You can never know for sure that the user has downloaded a file without any issues.
Maybe you will need to force the file download with PHP using header(), something like this:
Code:
...
header("Content-Type: $type");
header("Content-Transfer-Encoding: Binary");
header("Content-Length:".filesize($location));
header("Content-Disposition: attachment; filename=\"$file\"");
readfile($location);
...
And what you can do is to implement an additional step that must be executed after the file is successfully downloaded then you can track that step.
Perhaps with the Hitcount and Download Interceptor plugins...