Reporting on Downloads widget?
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
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: