plausible / plausible-tracker

Frontend library to interact with Plausible Analytics
https://github.com/plausible/plausible-tracker
MIT License
214 stars 46 forks source link

Add option to enable file download tracking #64

Open bezin opened 4 months ago

bezin commented 4 months ago

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.

Barbapapazes commented 4 months ago

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.