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.
As an indie dev creating macOS software I would highly appreciate addition of the .dmg extension the extension that are tracked by default!
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
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>>'.
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.
.dmg has now been added to the default list of our file downloads tracking extension. More at https://plausible.io/docs/file-downloads-tracking