Skip to content

Add PostHog integration for product analytics #5920

@dariomory

Description

@dariomory

Description

Add PostHog as an optional analytics provider alongside Sentry for error tracking, for product analytics and feature flags.

Rationale

Most projects need product analytics, but current options have privacy concerns and complex setup. PostHog is open-source (https://github.com/PostHog/posthog) and fills the same role as Sentry but for user behavior instead of errors and completes the essential observability stack alongside error tracking.

Proposed Implementation:

  • Add use_posthog cookiecutter option (y/n)
  • Include posthog package in requirements when enabled
  • Configure PostHog in Django settings with environment variables
  • Add PostHog JavaScript snippet to base template when enabled

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions