Skip to content

Support self-hosted Plausible - #41

Merged
thebuilder merged 1 commit into
mainfrom
feat/support-self-hosted-plausible
Jul 30, 2026
Merged

Support self-hosted Plausible#41
thebuilder merged 1 commit into
mainfrom
feat/support-self-hosted-plausible

Conversation

@thebuilder

Copy link
Copy Markdown
Owner

Summary

  • add WebAnalytics:Providers:Plausible:BaseUrl, defaulting to https://plausible.io/
  • route Plausible Stats API v2 requests through the configured cloud or self-hosted instance URL
  • validate and document the endpoint, including path-prefix support

Why

The Plausible client hard-coded https://plausible.io/, preventing an otherwise compatible self-hosted Stats API v2 instance from being used.

Impact

Deployments can set WebAnalytics__Providers__Plausible__BaseUrl to a self-hosted Plausible endpoint while retaining the existing SiteId and token configuration. Hosted Plausible behavior is unchanged.

Verification

  • dotnet test tests/TheBuilder.WebAnalytics.Tests/TheBuilder.WebAnalytics.Tests.csproj --no-restore
    • 230 passed
    • NuGet vulnerability-metadata lookup emitted existing NU1900 network warnings

@thebuilder
thebuilder marked this pull request as ready for review July 30, 2026 11:43
@thebuilder
thebuilder merged commit 8b659f8 into main Jul 30, 2026
5 checks passed
@thebuilder
thebuilder deleted the feat/support-self-hosted-plausible branch July 30, 2026 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant