plausible-tracker icon indicating copy to clipboard operation
plausible-tracker copied to clipboard

Add option to enable file download tracking

Open bezin opened this issue 1 year ago • 1 comments

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.

bezin avatar May 03 '24 11:05 bezin

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.

Barbapapazes avatar May 14 '24 10:05 Barbapapazes