A way to track file downloads?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
mr p
New Member
New Member
Posts: 9
Joined: Mon Jan 01, 2007 10:56 pm

A way to track file downloads?

Post by mr p »

As the subject says, I'm looking for a way to track file downloads. 

I am putting together a small repository of files for people to download and it would be nice if I could track which ones are popular and so on.  I upload using ftp and the only way in which cmsms knows about the files is that there is a link to each one from page content.  Upload manager or anything like that is not being used.

I'm using statistics to keep track of page views, but there is nowhere to get it to monitor files as well.

I'm thinking along the lines of using an extra cms tag in the file url, I have no desire to re-invent the wheel though.

Thoughts?

Cheers
alby

Re: A way to track file downloads?

Post by alby »

Try with Uploads module

Alby
mr p
New Member
New Member
Posts: 9
Joined: Mon Jan 01, 2007 10:56 pm

Re: A way to track file downloads?

Post by mr p »

I've been fiddling a bit with the uploads module, I can't see a way to link to the files uploaded in normal content however. 

For instance, if I specify the server url as ~//files/files2 the directory files2 does not seem to actually exist.

If I could do that I imagine it would be grand.

Cheers.
Last edited by mr p on Tue Jun 05, 2007 2:03 pm, edited 1 time in total.
mr p
New Member
New Member
Posts: 9
Joined: Mon Jan 01, 2007 10:56 pm

Re: A way to track file downloads?

Post by mr p »

OK, I've worked out what I was doing wrong in terms of finding the files uploaded through the uploads module.  I get caught every time when specifying directory paths as I'm used to specifying things from the root of the server, so telling the uploads module to upload to /home///uploads/upload_module_dir/ really means  /home///uploads/home///uploads/upload_module_dir/

I'm used to having to be explicit about relative paths but I really should have learnt by now for cms.

However, having found the files, it appears that for the uploads module to count downloads it must be told about them, simply downloading the file directly will not trigger the download counter.  Anyone know of a way to to trigger the counter from within a standard(ish) link?

Cheers.
Post Reply

Return to “CMSMS Core”