https://discord.umbraco.com logo
#package-development
Hi everyone, I've been trying to find
# package-development
i

ilazarevic42

01/31/2024, 11:36 AM
Hi everyone, I've been trying to find out if there is any best practice related to counting package installations or if there is any other way how a package owner can find out the number of installations of his package. Marketplace is using telemetry to sort the packages, but I can't seem to find how devs or owners can use this data. Are there any workarounds or recommended approaches that experienced package devs resort to when they want to find out how well their package is faring?
l

leekelleher

01/31/2024, 3:30 PM
Umbraco CMS itself is actively collecting telemetry stats, but they haven't been made publicly available yet, (I've heard there are efforts to make this happen, but no timeframe on that). In terms of packages, for my Contentment package, I rolled my own telemetry stats. All detailed on my website, along with the stats/analysis: https://leekelleher.com/umbraco/contentment/telemetry/ For Contentment, I hooked into the DataType save event/notification, then do a call-home with some anonymous data. e.g. https://github.com/leekelleher/umbraco-contentment/blob/4.6.0/src/Umbraco.Community.Contentment/Notifications/ContentmentTelemetryNotification.cs Important to let users know that the telemetry can be easily disabled if needed. If all that sounds overkill, then the download/install stats on the NuGet repository might be useful for you? Although keep in mind people using CI builds, as Contentment got into the millions of downloads, which is wildly different to what my telemetry tells me.
i

ilazarevic42

02/01/2024, 10:38 AM
The NuGet rep counters are what we look at anyway, but as you say they are not quite accurate for many reasons. I was also thinking about implementing my own telemetry, not being able to find anything public, but I was concerned about legal issues and user opt-in/opt-out. It seems you have solved it nicely. Thank you so much for the tips!
l

leekelleher

02/01/2024, 11:18 AM
👍 The legal concerns, (e.g. GDPR), come when there is any personal identifiable information stored. I try to avoid that, and use the minimal amount of anonymous data that I can.
2 Views