More in this section
Forums / General Discussions / Reporting on Downloads widget?

Reporting on Downloads widget?

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Lou
    Lou avatar
    30 posts
    11 Aug 2011
    10 Apr 2014
    Link to this post

    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!



  2. Vassil Vassilev
     Vassil Vassilev avatar
    308 posts
    21 Jan 2015
    11 Apr 2014
    Link to this post
    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:

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

    Regards, Vassil Vassilev
    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
2 posts, 0 answered