Developer forum

Forum » CMS - Standard features » Tracking file downloads based on users

Tracking file downloads based on users

Hans Ravnsfjall
Hans Ravnsfjall
Reply

Hi

Maybe not a standard feature in Dynamicweb, but maybe some of you have solved this somehow anyway.

What we wan´t to achieve - is a toplist of say eg top 10 extranet users who have downloaded a certain PDF type (Always attached to the same itemtype)

As far as I know, it is not possible to track this using standard Dynamicweb? So my plan is to use Google Analytics Event to track this. But was wondering if someone here has some experience or maybe info about another solution on this? And if there maybe is some "hacky" solution to use Dynamicweb to track this?

 

/Hans


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

You can do like this:

<a href="/admin/public/download.aspx?file=Files/somefolder/somefile.pdf&forcedownload=true">Download file</a>. Remember to URL escape the file name to handle spaces etc.

That will give you a record in Statv2Object of type file that is linked to a statv2session which is linked to a accessuser

BR Nicolai

Votes for this answer: 1

 

You must be logged in to post in the forum