Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to enable file download tracking #64

Open
bezin opened this issue May 3, 2024 · 1 comment
Open

Add option to enable file download tracking #64

bezin opened this issue May 3, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@bezin
Copy link

bezin commented May 3, 2024

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 bezin added the enhancement New feature or request label May 3, 2024
@Barbapapazes
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants