plausible-tracker
plausible-tracker copied to clipboard
Add option to enable file download tracking
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.
Hello 👋,
Unfortunately, this seems abandoned but you can take a look at this fork: https://github.com/Barbapapazes/plausible-tracker which solve many issues and support downloads.