Conversion rates by age

Aggregate conversion rate tells us the overall performance of our marketing campaign. However, it does not give us that much insight. When we are reporting and tracking the progress of marketing efforts, we typically would want to dive deeper into the data and break down the customer base into multiple segments and compute KPIs for individual segments. We will first break our data into smaller segments by age and see how the conversion rates differ by different age groups.

We will look at the following code first:

conversionsByAge <- conversionsDF %>%   group_by(Age=age) %>%   summarise(TotalCount=n(), NumConversions=sum(conversion)) %>%  mutate(ConversionRate=NumConversions/TotalCount*100.0)

The pipe operator, %>%, in ...

Get Hands-On Data Science for Marketing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.