Event Sequence Timer

Last updated:

What does the Event Sequence Timer app do?

This app measures the time it takes for a user to perform one event (EventB), after an earlier event (EventA).

What are the requirements for this app?

The Event Sequence Timer requires either PostHog Cloud, or a self-hosted PostHog instance running version 1.30.0 or later.

Not running 1.30.0? Find out how to update your self-hosted PostHog deployment!

How do I install the Event Sequence Timer app?

  1. Visit the 'Apps' page in your instance of PostHog.
  2. Search for 'Event Sequence Timer' and select the app, press Install.
  3. Follow the on-screen steps to configure the app.

How to configure the Event Sequence Timer app?

First, you must configure the list of events to track time differences on. This list is specified as follows:

(eventA,eventB),(eventC,eventD),(eventA,eventD)

Where the first event in a tuple is the event that "starts the timer" and the second event being the one that "finishes it". In other words, the first event happens before the second.

You can further configure the app using the 'Update timestamp on every new first event?' setting. The default behaviour is 'Yes'.

If you select 'Yes', the stored timestamp for the first event will always be updated when a new event with the same name comes in (for the same user). This means your second event will always contain the difference between its time and the last time the user triggered the first event.

If you select No, the stored timestamp will only be set once and never updated. This means you will get the difference between the time of the second event and the first time the user triggered the first event.

How does the Event Sequence Timer show elapsed time?

The Event Sequence Timer app measures time between two events (EventA and EventB) in milliseconds.

When a sequence is completed, the Event Sequence Timer adds a new property called time_since_eventA to EventB. You can then use this property in analysis with other PostHog apps.

Configuration

OptionDescription
List of events to track time differences on
Type: string
Required: True
Format:(eventA,eventB),(eventC,eventD) Spaces are not allowed
Update timestamp on every new first event?
Type: choice
Required: False
Selecting 'Yes' will track last touch, while selecting 'No' will track first touch.

Is the source code for this app available?

PostHog is open-source and so are all apps on the platform. The source code for the Event Sequence Timer is available on GitHub.

Who created this app?

We'd like to thank PostHog team member Yakko Majuri for creating the Event Sequence Timer. Thanks Yakko!

Who maintains this app?

This app is maintained by PostHog. If you have issues with the app not functioning as intended, please raise a bug report to let us know!

What if I have feedback on this app?

We love feature requests and feedback! Please create an issue to tell us what you think.

What if my question isn't answered above?

We love answering questions. Ask us anything via our Support page.

You can also join the PostHog Community Slack group to collaborate with others and get advice on developing your own PostHog apps.

Questions?

Was this page useful?

Next article

First Time Event Tracker

What does the First Time Event Tracker do? This app adds two new properties to events which you specify: is_event_first_ever is_event_first_for_user Using these events, you can track if each event is the first time that event has run for a individual user , the first time it has run ever , both of these, or neither. Note: For Pageview and Identify events, use the event names $pageview and $identify respectively. What are the requirements for this app? The First Time Event Tracker requires…

Read next article