+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Reporting on Downloads widget?

Reporting on Downloads widget?

2 posts, 0 answered
  1. Lou
    Lou avatar
    30 posts
    Registered:
    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!

     Thanks

    Lou

  2. Vassil Vassilev
     Vassil Vassilev avatar
    308 posts
    Registered:
    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:
    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
     
2 posts, 0 answered