Sorry, we don't support your browser.  Install a modern browser
This post is closed.

Please add .dmg to file download tracking

The file download tracking feature (https://plausible.io/docs/file-downloads-tracking) automaically tracks a bunch of file extensions, but I am missing .dmg, while .exe and .pkg are there.

While it’s possible to override the list of file types, that’s kind of annoying becuase you need to replace the entire list, you can’t only add one file type.

10 months ago

As an indie dev creating macOS software I would highly appreciate addition of the .dmg extension the extension that are tracked by default!

9 months ago

Thanks! As @Mathijs just noted in our docs, it is possible to add custom file type downloads to be tracked without overriding the default list by using the add-file-types attribute. See https://plausible.io/docs/file-downloads-tracking#what-if-i-want-to-track-a-different-file-type

9 months ago

Does data-add-file-types also work? Adding add-file-types results in a linter error: Object literal may only specify known properties, and '"add-file-types"' does not exist in type 'HTMLProps<"script", HTMLAttributes<any>>'.

8 months ago

I don’t think so, see this GitHub issue also mentioning validation breaking when using this attribute: https://github.com/plausible/analytics/issues/4046

Have to say it also caught me off guard that this attribute is without the data- prefix while all other Plausible options are using a data-attribute. Would be nice if that’s cleaned up.

8 months ago
Changed the status to
Up next
8 months ago

.dmg has now been added to the default list of our file downloads tracking extension. More at https://plausible.io/docs/file-downloads-tracking

8 months ago
Changed the status to
Completed
8 months ago