• Resolved kissenefrega

    (@kissenefrega)


    Hello there,
    I have a pre-download question. Does this plugin track also when a user download a file from a page, like for example a pdf file?
    Thanks

    MC

Viewing 1 replies (of 1 total)
  • Plugin Author P?r Thernstr?m

    (@eskapism)

    Hi! That functionality is not built in, but it is possible to use the Simple History API to log custom events, for example downloads. It would require some custom code however. I can’t give you the code but the pseudo code would be something like:

    – Add javascript code that listens to clicks on PDF files
    – When file is clicked send an Ajax request to the WordPress backend
    – The WordPress backend receives the request and adds a log entry to the Simple History log

    This is just a quick writeup, depending on your setup you could solve it in a completely different way…

Viewing 1 replies (of 1 total)
  • The topic ‘Track also download files?’ is closed to new replies.