This app parses the timestamp of each event that comes in to PostHog and adds the following time-based properties:
|Plain text value for the day of the week||Monday|
|Numeric value for the day within a month||7|
|Numeric value corresponding to the current month||6 (June)|
|Numeric value of the year||2022|
|Numeric value for the hour in UTC (24-hour clock)||21|
|Numeric value for the minute||37|
Here is an example of what these properties look like after they have been added to an event.
PostHog Cloud users can find the app here and click on the toggle to enable the app. Once the app has been enabled, it will automatically start parsing all new events which come in to PostHog.
- Visit the 'Apps' page in your instance of PostHog.
- Search for 'Timestamp Parser'.
- Click on the toggle to enable the app.
Any new events that come in to PostHog will now be automatically parsed!
Using the Timestamp Parser
The timestamp parser is a great tool for answering time-based questions that are sometimes very challenging to tackle with PostHog alone.
By filtering and breaking down events, we can now easily answer questions such as:
- Do we get more purchases on weekdays or weekends?
- Why does our traffic spike on Tuesdays?
- How do users use our platform differently during the holiday season?
- How does retention compare for users who join on a weekend versus a weekday?
Note: This app only works on new events sent to PostHog, and as a result you won't be able to filter events that were sent before it was enabled.
Here's an example of creating a filter in a trends insight to only show events that were send on a Saturday or Sunday.
We can also break down an insight by
month to get an idea of how it varies over the course of a year.
Overall, the timestamp parser is a simple yet incredibly powerful app that these examples only scratch the surface on.
Have a question?
We love answering questions. Ask us anything via our Support page or using the Q&A widget at the bottom of this page.
You can also join the PostHog Community Slack group to collaborate with others and get advice on developing your own PostHog apps.
Who created this app?
What if I have feedback on this app?
We love feature requests and feedback! Please create an issue to tell us what you think.