Skip to content

Performed an analysis of e-commerce data utilizing SQL on Google BigQuery, extracting actionable insights to guide strategic business decisions.

Notifications You must be signed in to change notification settings

Tonminhvan1912/SQL-Unraveling-E-commerce-Insights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

[SQL] Unraveling E-commerce Insight

1. Introduction

Performed an analysis of e-commerce data utilizing SQL on Google BigQuery, extracting actionable insights to guide strategic business decisions and enhance overall performance.

2. Dataset access

The eCommerce dataset is stored in a public Google BigQuery dataset. To access the dataset, follow these steps:

  • Log in to your Google Cloud Platform account and create a new project.
  • Navigate to the BigQuery console and select your newly created project.
  • In the navigation panel, select "Add Data" and then "Search a project".
  • Enter the project ID "bigquery-public-data.google_analytics_sample.ga_sessions" and click "Enter".
  • Click on the "ga_sessions_" table to open it.

3. Exploring the Dataset

In this project, I will write 08 query in Bigquery base on Google Analytics dataset

Query 01: Calculate total visit, pageview, transaction for Jan, Feb and March 2017 (order by month)

  • SQL code

Image

  • Query results

Image

Query 02: Bounce rate per traffic source in July 2017 (Bounce_rate = num_bounce/total_visit) (order by total_visit DESC)

  • SQL code

Image

  • Query results

Image

Query 3: Revenue by traffic source by week, by month in June 2017

  • SQL code

Image

  • Query results

Image

Query 04: Average number of pageviews by purchaser type (purchasers vs non-purchasers) in June, July 2017.

  • SQL code

Image Image

  • Query results

Image

Query 5: Average number of transactions per user that made a purchase in July 2017

  • SQL code

Image

  • Query results

Image

Query 6: Average amount of money spent per session. Only include purchaser data in July 2017

  • SQL code

Image

  • Query results

Image

Query 7: Other products purchased by customers who purchased product "YouTube Men's Vintage Henley" in July 2017. Output should show product name and the quantity was ordered.

  • SQL code

Image

  • Query results

Image

Query 8: Calculate cohort map from product view to addtocart to purchase in Jan, Feb and March 2017.

  • SQL code

Image Image

  • Query results

Image

4. Insights

  • Buyers exhibited an increase in average page views from June (94.02) to July (124.24), indicating heightened interest and engagement with the products.
  • Non-buyers also experienced a slight uptick in average page views, from June (316.87) to July (334.66), suggesting that even those not purchasing are exploring the offerings more thoroughly.
  • "Google Sunglasses" was the most purchased item (20 units), demonstrating its popularity among customers who bought the "YouTube Men's Vintage Henley," indicating cross-selling opportunities.
  • The Add to Cart Rate improved significantly from 28.47% in January to 37.29% in March, reflecting enhanced effectiveness in encouraging users to take action.
  • The Purchase Rate also increased from 8.31% in January to 11.64% in March, indicating that not only are more users adding items to their carts, but a greater proportion are completing their purchases.

5. Recommendations

  • Implement targeted marketing strategies to engage non-buyers through personalized email campaigns and retargeting ads featuring products they have viewed but not purchased.
  • Utilize the data on other frequently purchased products to develop cross-selling strategies. For example, promote "Google Sunglasses" alongside "YouTube Men's Vintage Henley" in marketing materials and during the checkout process.
  • Analyze the checkout funnel to identify any drop-off points. Simplifying the checkout process can help convert more users who have added items to their carts.

About

Performed an analysis of e-commerce data utilizing SQL on Google BigQuery, extracting actionable insights to guide strategic business decisions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published