Skip to content

Handle multiple environments of the same product within one PostHog project #3149

Description

@Twixes

Is your feature request related to a problem?

Currently if you're running your software in separate environments, e.g. the classic: development/staging/production, and are instrumenting analytics within it, you have two options of using PostHog:

  1. Keep all data within one project and only label events with an environment (or similar in idea) property.
    This however has the downside of forcing you to add the appropriate event property everywhere, and may mess up person data.
  2. Create separate projects for each environment. This provides total separation of data, but creates multiple places to set up analytics (e.g. actions, dashboards, feature flags) for the same product, which is a lot of work with flimsy results.

Describe the solution you'd like

Switching between environments within a project, keeping the setup the same, only with completely separate data.

Or… something else? Ideas welcome!

Additional context

Multiple users have been asking as about this exact same use case and so far our solutions have always been underwhelming due to the above issues.

Thank you for your feature request – we love each and every one!

Metadata

Metadata

Assignees

Labels

conceptIdeas that need some shaping up stillenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions