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:
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.
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.