Jun 27, 2022

Array 1.37.0: Cohorts 2.0 and event & property detail pages

Want to know more about what we're up to? Subscribe to our new newsletter, which we send once every two weeks!

Running a self-hosted instance? Check out our Upgrading PostHog guide.

PostHog 1.37.0 release notes

IMPORTANT! This version will not run until async migration `0004_replicated_schema` is completed. Before upgrading, please make sure this migration is completed. Check out the async migrations docs for details.

Release highlights:

New: Cohorts 2.0

Cohorts are an extremely powerful tool. They let you define a group of users to later base your analytics on. In this release, we completely revamped how you define cohorts, giving you flexible and powerful filtering capabilities.

Cohorts 2.0

New condition types

Previously, cohorts could only be defined using the following conditions:

  • Match users who have a certain property
  • Match users who have completed a certain event

We've now added the following conditions:

  • Did not complete event: Find users who aren't doing what you expect. For example, "Give me users who visited the home page, but did not click on the 'Sign up' button.".
  • Completed an event multiple times: Find your most active users. For example, "Give me users who have 'Bought item' more than 3 times in the last 30 days".
  • Completed a sequence of events: Find users using your product in a very specific way. For example, "Give me users who added something to their cart and then entered a promo code within a day".
  • Did not complete a sequence of events: Find users who aren't using your product as you'd like. For example, "Give me users who added something to their cart, but didn't checkout within a day".
  • Do not have the property: Find more specific sets of users. For example, "Give me users outside of Europe".
  • Completed an event for the first time: Find the newest users of a feature. For example, "Give me users who bought an item for the first time in the last 7 days".
  • Completed an event regularly: Find your power users. For example, "Give me users who bought an item in 5 out of the last 7 weeks".
  • Stopped doing an event: Find your users that are at risk of churning. For example, "Give me users who haven't bought anything in the last 7 days, but had bought something in the 30 days prior".
  • Started doing an event again: Find your users that did not churn. For example, "Give me users who bought something, then didn't for 2 weeks, but have again in the last 7 days".

AND/OR operators within cohort conditions

You can now combine these new conditions using complex AND/OR groupings.

For example, you can define a cohort that is "Give me users who are outside of Europe AND have either regularly bought an item 4 of the last 5 weeks OR bought 3 items in the past week".

With the combination of these new conditions and the new AND/OR operators, you can now define extremely powerful cohorts for finding the exact users that you're looking for.

Nested cohorts

But that's not all! You can also use existing cohorts to define new cohorts. For example, you can define a cohort as "Give me users in Cohort X that are not in Cohort Y".

Using these nested cohorts enables you to avoid redefining the same cohort over and over again.

New: Event and property detail pages

We've added a new page within Data Management, which enables you to dig into the details of all events and properties. For example, on the event page, you can now see:

  • When an event was first and last seen
  • How many times it was sent in the last 30 days
  • The top properties for that event
  • A filterable list of the specific event for you to explore
Event Page

New: Dancing hedgehogs

Waiting for an insight to load? Our favorite mascot, Max, will now keep you company!

Dancing HedgeHog

Improved: Save event columns

You can now select and reorder the custom event columns that you want to see on the live events page. You can save the selected columns selected at the team level, so your colleagues can benefit too.

Configurable Columns

Improved: Faster response times in the app

We've made it faster to load insights and recordings. We realized that some data payloads were quite big, which resulted in the network slowing things down. To improve this, we added compression to a few of the endpoints in the app, and now see at least 50% smaller responses sent to clients.

a screenshot showing an API client receiving 308KB instead of 1.4MB of data

Here's to things being faster!

Improved: App retry and failure logic

The retry policy of apps (formerly known as plugins) has been consolidated. Built-in retries with RetryError are now more widely available. Additionally, you will be notified by email if an app fails to load in your project due to a fatal setupPlugin error (email configuration required). See Apps developer reference for more details.

Other improvements & fixes

Version 1.37 also adds hundreds of other improvements and fixes, including...

  • Fixed: PostHog-js was logging an unnecessary warning #10375
  • Fixed: Only show dashed line if it is not the previous period. #10345
  • Fixed: Remove correlation table from the funnel preview in experiments #10286
  • Fixed: Only query for the user once when loading my flags #10205
  • Fixed: Disappearing breakdown tooltip #10184

View the commit log in GitHub for a full history of changes: release-1.36.0...release-1.37.0.

Deprecation and removal notices

  • For feature flags: Feature flags can no longer depend on cohorts with behavioral conditions. They can still depend on cohorts with only property conditions. You can read more context here.

Share your feedback

We'd love to hear anything you have to say about PostHog, good or bad. As a thank you, we'll share some awesome PostHog merch.

Want to get involved? Email us to schedule a 30 minute call with one of our teams to help us make PostHog even better!

Contributions from the community

We always welcome contributions from our community and this time we want to thank the following people...

  • @MichaelLampe for a correction to PostHog docs
  • @girlProg for corrections to PostHog.com

Do you want to get involved in making PostHog better? Check out our contributing resources to get started, or head to our Slack group. We also have a list of Good First Issues for ideas on where you can contribute!

Open roles at PostHog

Want to join us in helping make more products successful? We're currently hiring for remote candidates in any of the following roles:

Curious about what it's like to work at PostHog? Check out our careers page for more info about our all-remote team and transparent culture. Don’t see a specific role listed? That doesn't mean we won't have a spot for you. Send us a speculative application!


Follow us on Twitter or LinkedIn for more PostHog goodness!


Ready to find out more?