dotnet / docfx

Static site generator for .NET API documentation.
https://dotnet.github.io/docfx/
MIT License
4.07k stars 865 forks source link

[Feature Request] Tracking with Matomo #8855

Open jamaa opened 1 year ago

jamaa commented 1 year ago

Is your feature request related to a problem? Please describe. Recently, the ability to add Google Analystics tracking was added in #8733. It would be nice to have the possibility to also use alternative trackers such as Matomo.

Describe the solution you'd like Ideally, we could set the tracker url and site id in the docfx config and docfx would include the corresponding javascript tracking code in the output.

Describe alternatives you've considered The alternative is to add the tracking code to a custom template

Additional context

yufeih commented 1 year ago

It seems Matomo does not have a free tier, hence we cannot promote it here by providing builtin support.

KalleOlaviNiemitalo commented 1 year ago

It appears to have a self-hosted free option https://matomo.org/what-is-on-premise/. In which case the URL would have to be configured as global metadata, I guess.

jamaa commented 1 year ago

It seems Matomo does not have a free tier, hence we cannot promote it here by providing builtin support.

It is open-source and free if you self-host it. It also respects user privacy more than Google Analytics does. I would prefer promoting Matomo over Google Analytics any day. But that's just my personal opinion.

natakazakova commented 1 month ago

Hi! Do you have any updates here? I also preferred Matomo because of its privacy and I'd like to see native docfx support of Matomo.