{"id":24701642,"url":"https://github.com/valenthr/purchase_funnel","last_synced_at":"2025-06-21T04:38:18.089Z","repository":{"id":274368347,"uuid":"879393879","full_name":"valenthr/purchase_funnel","owner":"valenthr","description":"Google merch store sales analysis","archived":false,"fork":false,"pushed_at":"2025-01-26T21:04:50.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T22:18:21.864Z","etag":null,"topics":["bigquery","product-analysis","sql"],"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/valenthr.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}},"created_at":"2024-10-27T19:31:26.000Z","updated_at":"2025-01-26T21:04:53.000Z","dependencies_parsed_at":"2025-01-26T22:18:22.799Z","dependency_job_id":"49ba1355-6014-43a8-a052-2d97e6964363","html_url":"https://github.com/valenthr/purchase_funnel","commit_stats":null,"previous_names":["valenthr/purchase_funnel"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valenthr%2Fpurchase_funnel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valenthr%2Fpurchase_funnel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valenthr%2Fpurchase_funnel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valenthr%2Fpurchase_funnel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/valenthr","download_url":"https://codeload.github.com/valenthr/purchase_funnel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244902925,"owners_count":20529115,"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":["bigquery","product-analysis","sql"],"created_at":"2025-01-27T05:25:00.450Z","updated_at":"2025-03-22T04:12:55.200Z","avatar_url":"https://github.com/valenthr.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# E-commerce funnel\n\nAll data used is [there](https://console.cloud.google.com/bigquery?ws=!1m5!1m4!4m3!1sbigquery-public-data!2sga4_obfuscated_sample_ecommerce!3sevents_20210131).\nAll step-by-step solutions are attached to task numbers\n\n## Tools\n\nBigQuery, Looker studio\n\n## Goals\n\nThe main goal of this project is to study the purchase funnel in terms of dates, advertising campaigns and landing pages - it is needed to find the stages of the funnel where visitors drop off. Also, the task is to find the correlation between user engagement and purchase\n\n## [Task 1](https://console.cloud.google.com/bigquery?sq=138619258054:3766fb282115407fac7905386b7a2f43)\n\n   Data preparation. Selection of events for further creation of the funnel:\n1. Start a session on the site.\n2. Viewing the product.\n3. Adding the product to the basket.\n4. Start of placing an order.\n5. Adding delivery information.\n6. Adding payment information.\n7. Purchase.\n   \n## [Task 2](https://console.cloud.google.com/bigquery?sq=138619258054:58612a4680564fe6bdee0c00e11df079)\n\nСreating a purchase funnel and calculating CR from first visit to all stages of funnel:\n\n1. To viewing the product.\n2. To adding the product to the basket.\n3. To start of placing an order.\n4. To adding delivery information.\n5. To adding payment information.\n6. To purchase.\n\n   The result are showed for each date, campaign, medium and source.\n   \n## [Task 3](https://console.cloud.google.com/bigquery?sq=138619258054:cf89c7eb599d447fbac889074635f94f)\n\nComparison of conversion between different landing pages.\nTo perform this task, the page path (the path to the page without the domain address and without link parameters) was obtained from page_location in the session start event.\nFor each unique page path of the beginning of the session, the following metrics were calculated:\n1. The number of unique sessions in unique users.\n2. Number of purchases.\n3. Conversion from the beginning of the session to a purchase.\n   \n## [Task 4](https://console.cloud.google.com/bigquery?sq=138619258054:377ff30bccab49a7b1864f6bb3ab446e)\n\nFinding the correlation between user engagement and purchases.\nFor each unique session:\n1. Was the user engaged during this session (if session_engaged = '1')\n2. Total user activity time during the session (the sum of the engagement_time_msec parameter from each session event)\n3. Whether a purchase occurred during the session\n   Then the value of the correlation coefficient was calculated:\n1. Between engagement and purchase.\n2. Between time of engagement and purchase\n## [Task 5](https://lookerstudio.google.com/reporting/16b6ae28-74d4-4121-bc3d-76bf34d060a8) - final dashboard in Looker Studio\nThe dashboard consists of 6 visualizations: \n1. Visualized sales funnel with conversions to all 7 stages of the funnel from 1 task.\n2. Average time from the beginning of the session to all stages of the funnel.\n3. Dynamics of the number of users and conversions before adding to the basket during the studied period (01.01.2021 - 01.31.2021). \n4. Dynamics of change in conversion time during the same period.\n5. Conversion to payment for each country.\n6. 5 conversions for the same period:\n  * CR to purchase;\n  * CR to shipping info;\n  * CR to payment info;\n  * CR to cart;\n  * CR to begin checkout.\n\u003c!-- ## Insights and conclusion\n1. Into funnel is 3 main pinpoint areas where users drop off:\n1) CR to viewing item - only 20%. On the second visualization (average time to each stage of funnel) we find the key to reason - average time to this stage is more than 8 minutes.\nSolution - develop more user-friendly interface to make it easier for users to understand.\n2) СR to add payment --\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalenthr%2Fpurchase_funnel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalenthr%2Fpurchase_funnel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalenthr%2Fpurchase_funnel/lists"}