{"id":28474062,"url":"https://github.com/thenazar9/user-behavior-email-campaign-analysis-sql","last_synced_at":"2025-10-16T01:31:53.702Z","repository":{"id":294958317,"uuid":"988634372","full_name":"thenazar9/user-behavior-email-campaign-analysis-sql","owner":"thenazar9","description":"Analysis of user behavior and email campaign performance using BigQuery and Looker Studio, focusing on account creation trends, email engagement, and user segmentation.","archived":false,"fork":false,"pushed_at":"2025-05-22T21:33:05.000Z","size":439,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-07T13:01:35.903Z","etag":null,"topics":["analytics","bigquery","data-analysis","data-visualization","etl","looker-studio","sql","structured-query-language"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thenazar9.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-22T20:58:02.000Z","updated_at":"2025-05-22T22:00:47.000Z","dependencies_parsed_at":"2025-05-22T22:42:46.983Z","dependency_job_id":null,"html_url":"https://github.com/thenazar9/user-behavior-email-campaign-analysis-sql","commit_stats":null,"previous_names":["thenazar9/user-behavior-email-campaign-analysis-sql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thenazar9/user-behavior-email-campaign-analysis-sql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenazar9%2Fuser-behavior-email-campaign-analysis-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenazar9%2Fuser-behavior-email-campaign-analysis-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenazar9%2Fuser-behavior-email-campaign-analysis-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenazar9%2Fuser-behavior-email-campaign-analysis-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thenazar9","download_url":"https://codeload.github.com/thenazar9/user-behavior-email-campaign-analysis-sql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenazar9%2Fuser-behavior-email-campaign-analysis-sql/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263102681,"owners_count":23414152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analytics","bigquery","data-analysis","data-visualization","etl","looker-studio","sql","structured-query-language"],"created_at":"2025-06-07T13:00:44.446Z","updated_at":"2025-10-16T01:31:53.613Z","avatar_url":"https://github.com/thenazar9.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# User Behavior and Email Campaign Performance Analysis (SQL \u0026 Looker Studio)\n\nThis 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.\n\n## 🔍 Project Goals\n\n- Analyze user account creation trends and email activity by date and country.\n- Segment users by sending interval, account verification (`is_verified`), and subscription status (`is_unsubscribed`).\n- Calculate key metrics including:\n  - Number of accounts created (`account_cnt`)\n  - Number of emails sent (`sent_msg`)\n  - Number of emails opened (`open_msg`)\n  - Number of email link clicks (`visit_msg`)\n- Rank countries by total account creation and total emails sent to identify top markets.\n- Combine account and email metrics in one dataset using SQL `UNION`.\n- Filter results to include only top 10 countries by accounts or emails sent.\n\n## 📊 Tools \u0026 Skills Used\n\n- **BigQuery SQL**: complex queries with CTEs (Common Table Expressions), window functions for ranking, grouping and aggregations.\n- **Looker Studio**: interactive dashboards and data visualizations.\n- **Data analysis**: user behavior, email campaign effectiveness, segmentation, ranking.\n\n## 📁 Dataset Structure\n\nThe final dataset includes the following fields:\n\n- `date` — account creation date or email sent date\n- `country` — user country\n- `send_interval` — email sending interval set by user\n- `is_verified` — account verification status\n- `is_unsubscribed` — subscription status\n- `account_cnt` — number of accounts created\n- `sent_msg` — number of emails sent\n- `open_msg` — number of emails opened\n- `visit_msg` — number of email link clicks\n- `total_country_account_cnt` — total accounts created per country\n- `total_country_sent_cnt` — total emails sent per country\n- `rank_total_country_account_cnt` — rank of countries by accounts created\n- `rank_total_country_sent_cnt` — rank of countries by emails sent\n\n## 📄 Deliverables\n\n- SQL query with detailed comments explaining logic and structure.\n- Looker Studio dashboard visualizing:\n  - **Email engagement trends (sent, opened, clicked messages) over time.**\n  - **Total accounts created by country (map visualization).**\n  - **Country rankings by total account creation and total emails sent.**\n  - **Account information by country, including subscription and verification status.**\n\n## 📈 Visualization of Results\n\nBelow is the graphical representation of the analyzed data, showing key trends and metrics from the user behavior and email campaign performance analysis.\n\n![Visualization Screenshot](looker_studio_reporting_sql_portfolio_page.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenazar9%2Fuser-behavior-email-campaign-analysis-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthenazar9%2Fuser-behavior-email-campaign-analysis-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenazar9%2Fuser-behavior-email-campaign-analysis-sql/lists"}