February 2018 Summaries
2 posts from Cube
Filter
Month:
Year:
Post Summaries
Back to Blog
Defining user sessions with SQL gives flexibility and full control over how metrics are defined for unique business needs, allowing analysis of user interactions within a given time frame. A session is typically defined as a group of interactions by one user within that time frame, usually 30 minutes, including events like page visits or actions completed on an app. To define sessions, an event table with user_id and timestamp is required, along with additional information like event type and referrer data. SQL queries using window functions can be used to calculate inactivity times and group events into sessions based on 30-minute intervals of inactivity. By analyzing these sessions, businesses can answer questions about user behavior, such as average session duration and bounce rates.
Feb 08, 2018
521 words in the original blog post.
Calculating the Customer Lifetime Value (LTV) of a SaaS business is crucial for understanding its long-term potential and making informed decisions about pricing, marketing, and resource allocation. The basic formula for estimating LTV involves multiplying the average monthly recurring revenue per user (ARPU) by the retention rate, which is the inverse of the churn rate. However, this formula assumes linear churn over time, which may not accurately reflect real-world scenarios where customers are more likely to leave in the early stages of their subscription. To estimate LTV, businesses can use SQL queries to extract ARPU and churn data from their transactional database, taking into account factors such as contract type and customer behavior. While this formula provides a basic estimate of LTV, it has limitations, including stability across cohorts and time, which may require revising the estimate downwards if assumptions are not met.
Feb 01, 2018
781 words in the original blog post.