How to tracking downloads (in groups) from folders?


I have a website that consists of many files to download/display (pdf, word etc). The service on a tree structure:

I would like to keep track of all the downloads of different files from the following folders:**

How can I do this, can I ask for an example? Thank You