This project analyzes user behavior and email campaign performance using an e-commerce dataset in BigQuery. The main goal is to create a dataset that helps track account creation dynamics, user activity with emails (sent, opened, clicked), and evaluate user segmentation based on sending intervals, account verification status, and subscription status.
- Analyze user account creation trends and email activity by date and country.
- Segment users by sending interval, account verification (
is_verified
), and subscription status (is_unsubscribed
). - Calculate key metrics including:
- Number of accounts created (
account_cnt
) - Number of emails sent (
sent_msg
) - Number of emails opened (
open_msg
) - Number of email link clicks (
visit_msg
)
- Number of accounts created (
- Rank countries by total account creation and total emails sent to identify top markets.
- Combine account and email metrics in one dataset using SQL
UNION
. - Filter results to include only top 10 countries by accounts or emails sent.
- BigQuery SQL: complex queries with CTEs (Common Table Expressions), window functions for ranking, grouping and aggregations.
- Looker Studio: interactive dashboards and data visualizations.
- Data analysis: user behavior, email campaign effectiveness, segmentation, ranking.
The final dataset includes the following fields:
date
β account creation date or email sent datecountry
β user countrysend_interval
β email sending interval set by useris_verified
β account verification statusis_unsubscribed
β subscription statusaccount_cnt
β number of accounts createdsent_msg
β number of emails sentopen_msg
β number of emails openedvisit_msg
β number of email link clickstotal_country_account_cnt
β total accounts created per countrytotal_country_sent_cnt
β total emails sent per countryrank_total_country_account_cnt
β rank of countries by accounts createdrank_total_country_sent_cnt
β rank of countries by emails sent
- SQL query with detailed comments explaining logic and structure.
- Looker Studio dashboard visualizing:
- Email engagement trends (sent, opened, clicked messages) over time.
- Total accounts created by country (map visualization).
- Country rankings by total account creation and total emails sent.
- Account information by country, including subscription and verification status.
Below is the graphical representation of the analyzed data, showing key trends and metrics from the user behavior and email campaign performance analysis.