Reporting on Downloads widget?

Posted by Community Admin on 03-Aug-2018 16:24

Reporting on Downloads widget?

All Replies

Posted by Community Admin on 10-Apr-2014 00:00

Hi, We're running SF 5.4.

We use the Download List widget on our website.

 Is there a way to get any reporting on how many people downloaded documents?

We do use Google Analytics, but am uncertain if I can find results in Sitefinity itself or GA.

Any thoughts/help would be appreciated!

 Thanks

Lou

Posted by Community Admin on 11-Apr-2014 00:00
Hello Lou,

This could be achieved rather easily by subscribing to exposed media downloaded event. You need to attach your new eventhandler to EventHub in Global.asax:
protected void Application_Start(object sender, EventArgs e)
    EventHub.Subscribe<IMediaContentDownloadEvent>(evt => DonloadedStatisicEventHandler(evt));
 
private void DonloadedStatisicEventHandler(IMediaContentDownloadEvent evt)
  //your code here


 IMediaContentDownloadEvent provides access to the following properties:

  • The UserId of the currently logged in user
  • The url of the downloaded item
  • The type of the downloaded item
  • The Title of the downloaded item
  • The libraries provider name in which the item is stored
  • The MIME type of the downloaded item
  • The ID of the library in which the item is stored
  • The headers of the request to download the item
  • The ID of the item

 Here is our API where you can find detailed information:
http://www.sitefinity.com/documentation/documentationarticles/developers-guide/deep-dive/sitefinity-event-system/list-of-events/libraries-events

If you encounter any problems during this implementation, please do not hesitate to contact us.

Regards, Vassil Vassilev
Telerik
 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 
This thread is closed