Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Add option to enable file download tracking #64

@bezin

Description

@bezin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions