Hi all,
it would be great when file download tracking with this library would be as easy as when including the script directly with https://plausible.io/js/script.file-downloads.js as described in the docs, i.e.
const plausible = new Plausible({ domain: 'example.org', trackFileDownloads: true })
// Defining options could be handled with an options object:
const plausible = new Plausible({ domain: 'example.org', trackFileDownloads: { extensions: ['docx', 'pdf', 'xlsx'] }})
Right now it seems I would have to implement all of this myself.