Skip to content

feat: support additional analytics providers beyond Google Analytics #134

@rohilsurana

Description

@rohilsurana

Problem

The analytics config schema only supports Google Analytics:

```yaml
analytics:
googleAnalytics:
measurementId: G-XXXXXXXXXX
```

Adding Plausible, PostHog, Segment, or other providers requires a schema rewrite and new provider code.

Suggested Approach

  • Extend the analytics schema to support a provider pattern:
    ```yaml
    analytics:
    enabled: true
    provider: plausible # or google, posthog, segment
    config:
    domain: docs.example.com
    ```
  • Or support multiple concurrent providers (GA + Plausible)
  • The existing `analytics` library already supports plugins — leverage that

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions