Fetch metrics and then proceed
Perform the following steps: 1. Calculate the date range for the 'Last 24 Hours' and the 'Previous 24 Hours'. 2. Fetch crucial PostHog metrics for these two periods, including: - Core KPIs: Visitors (Unique Users), Signups, Sessions, DAU/MAU, Retention Rate (Day 1), Conversion Rate, Bounce Rate, Pageviews. - Top Events (by count). - Funnel Performance ($pageview -> chat:started -> chat:message_sent). - Anomalies/Insights. 3. Tell me the entire details in the notification of whatsapp - Title: ":bar_chart: Daily PostHog Metrics Summary" - Header: "Period: [Current Date Range] vs [Previous Date Range]" - Body: Use clean Markdown format with code blocks for tables and bullet points for highlights, comparing metrics and showing % change where possible. Explain the metrics eas easily as possible. Tell me my current growth rate week on week, and compare with an ideal growth rate like 7% how many users would be required to reach that growth rate, how many we have etc. ensure the maths adds up.
Retrieve core KPIs, top events, and funnel performance data for the last 24 hours and the previous 24 hours.
Calculate percentage changes, determine week-on-week growth rates, compare against the 7% target, and draft the summary report with markdown tables and bullet points.
Send the finalized metrics report to the user via WhatsApp notification.