<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Minyen Hsieh on Medium]]></title>
        <description><![CDATA[Stories by Minyen Hsieh on Medium]]></description>
        <link>https://medium.com/@minxyen?source=rss-a0b8cd2481a6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*m2fpvD0y3BiXPI2u</url>
            <title>Stories by Minyen Hsieh on Medium</title>
            <link>https://medium.com/@minxyen?source=rss-a0b8cd2481a6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 07:32:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@minxyen/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Efficiently Ingest Data into Snowflake with Informatica Cloud]]></title>
            <link>https://medium.com/minyen-hsieh/efficiently-ingest-data-into-snowflake-with-informatica-cloud-a3dca8b78ab3?source=rss-a0b8cd2481a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3dca8b78ab3</guid>
            <category><![CDATA[data-integration]]></category>
            <category><![CDATA[google-ads-api]]></category>
            <category><![CDATA[informatica-cloud]]></category>
            <category><![CDATA[data-pipeline]]></category>
            <dc:creator><![CDATA[Minyen Hsieh]]></dc:creator>
            <pubDate>Sat, 15 Apr 2023 03:33:36 GMT</pubDate>
            <atom:updated>2023-04-15T14:53:18.093Z</atom:updated>
            <content:encoded><![CDATA[<p>Data Integration, ETL/ELT, data architecture</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*bve4pqcRX0NarZeI7w-czw.jpeg" /></figure><h3>Intro</h3><p>At my company, our marketing data is scattered across various platforms, making it difficult to efficiently analyze and gain insights. To address this, we’re centralizing our data into our Snowflake data warehouse.</p><p>As part of this effort, I designed an ETL/ELT data integration pipeline for Google Ads, one of the key marketing channels we use. In this article, I’ll give you an overview of the data pull/load task flow that I designed and constructed. Having data in our database will make it easier for us to analyze our Google Ads data and gain valuable insights that will inform our marketing strategy.</p><p><strong>Tools used: </strong>Postman, Google Ads API (REST API), Informatica Cloud, Snowflake Data Warehouse</p><p>Postman is not covered in this article since it is used for underlying work. It helps with API development/testing and generates a Swagger2.0 file that provides a machine-readable representation of the API details (endpoints, parameters, responses, etc.) for Informatica.</p><p>Below is the overall task flow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*65SLBzTAenLFuQuW5b8AoQ.png" /></figure><h3>Step 1: Load Parameter Dates.</h3><p>To keep track of the data we load daily, we use a &lt;Parameter Date&gt; table that stores all available dates for which we can pull data and if those dates have already been processed.</p><p>Below is the DDL statement that creates the &lt;Parameter Date&gt; table.</p><pre>-- DDL: Create the table<br>create or replace TABLE DEV_STAGING.MARKETING_GOOGLE.MARKETING_PAID_ADS_PARAMETER_DATE (<br> PARAMETER_DATE TIMESTAMP_NTZ(9) not null primary key,<br> IS_COMPLETE number(1,0) not null<br>);</pre><p>We can only pull Google Ads data as far back as 24 months. Therefore, we set to get the date from the previous 700 days ~ 2 days from the current date. Below is the query used in the mapping task that iteratively generates the “next available date” to be processed and inserts it into the &lt;Parameter Date&gt; table. If there are no more available dates, the process stops.</p><pre>-- Interatively generate the available dates into the table<br><br>with d as (<br>  select<br>    greatest(<br>      to_varchar(ifnull(dateadd(day, 1, max(date_trunc(day, to_date(PARAMETER_DATE)))), &#39;2022-01-01&#39;), &#39;YYYY-MM-DD&#39;)<br>      ,to_varchar(dateadd(day, -700, current_date), &#39;YYYY-MM-DD&#39;)<br>    ) :: varchar(10) as PARAMETER_DATE<br>  from MARKETING_PAID_ADS_PARAMETER_DATE<br>)<br>select<br>  PARAMETER_DATE<br>from<br>  d<br>where<br>  PARAMETER_DATE &lt;= dateadd(day, -2, current_date)<br>;</pre><p>Once all available dates have been inserted, the &lt;Parameter Date&gt; table will show the following information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*8zh_qsETtSbTtTBVCMqLUg.png" /></figure><p>How the mapping task looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0jenhsAg5J7pYHAmSRYLKQ.png" /></figure><h3>Step 2: Create a Parameter File for the Google Ads API Call.</h3><p>Before connecting to the API, we must prepare a Parameter File containing all the required information (GAQL &amp; date).</p><p>Below is the GAQL (Google Ads Query Language) query I’m using to pull specific fields. The start_date and end_date within the WHERE statement will be updated dynamically.</p><pre>-- GAQL: Google Ads Query Language<br><br>SELECT<br>  campaign.name,<br>  campaign.advertising_channel_type,<br>  ad_group.name,<br>  ad_group.status,<br>  ad_group_criterion.keyword.text,<br>  ad_group_criterion.keyword.match_type,<br>  ad_group_criterion.status,  <br>  ad_group_criterion.approval_status,<br>  ad_group_criterion.system_serving_status,<br>  ad_group_criterion.labels,<br>  metrics.impressions,<br>  metrics.clicks,<br>  metrics.cost_micros,<br>  metrics.conversions<br>FROM keyword_view<br>WHERE segments.date BETWEEN &#39;2022-01-02&#39; AND &#39;2022-01-02&#39;<br>  AND metrics.impressions&gt;0<br>ORDER BY campaign.name, ad_group.name, metrics.impressions DESC</pre><p>We use the earliest available date from the &lt;Parameter Date&gt; table where IS_COMPLETE = 0 to construct the GAQL query dynamically. Here’s the query that returns the GAQL query and the date.</p><pre>with d as (<br>  select <br>    min(PARAMETER_DATE) as RESULTS_DATE<br>  from <br>    MARKETING_PAID_ADS_PARAMETER_DATE <br>  where <br>    IS_COMPLETE = 0<br>    and PARAMETER_DATE &gt;= dateadd(day, -700, current_date)<br>)<br>select<br>  concat(<br>    &#39;SELECT campaign.name, campaign.advertising_channel_type,<br>            ad_group.name, ad_group.status, ad_group_criterion.keyword.text,<br>            ad_group_criterion.keyword.match_type, ad_group_criterion.status,<br>            ad_group_criterion.approval_status,<br>            ad_group_criterion.system_serving_status,<br>            ad_group_criterion.labels,metrics.impressions,<br>             metrics.clicks, metrics.cost_micros, metrics.conversions<br>      FROM keyword_view WHERE segments.date BETWEEN &#39;&#39;&#39;<br>     ,substring(d.RESULTS_DATE,1,10)<br>     ,&#39;&#39;&#39; and &#39;&#39;&#39;<br>     ,substring(d.RESULTS_DATE,1,10)<br>     ,&#39;&#39;&#39; AND metrics.impressions&gt;0 ORDER BY campaign.name, ad_group.name, metrics.impressions DESC&#39;<br>  )  :: varchar(1000) as GOOGLE_QUERY<br>,d.RESULTS_DATE<br>,substring(d.RESULTS_DATE,1,10) as RESULTS_DATE_TEXT<br>,case when RESULTS_DATE in (select distinct substring(RESULTS_DATE,1,10) from MARKETING_PAID_ADS) then 1 else 0 end as DATA_LOADED<br>from<br>  d<br>;</pre><p>After determining the data pull date and constructing the GAQL query, we check if the date has already been processed. If so, the task flow ends, and we update it as complete in the &lt;Parameter Date&gt; Table. If not, we will still update it as complete in the table first, then, will go ahead to pull the data for that date.</p><p>Below is the mapping task that generates the parameter file dynamically and updates the &lt;Parameter Date&gt; table accordingly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0RPWxTCKqf9ICw-c-DYM1Q.png" /></figure><h3>Step 3: Generate Access Token Before Pulling Data</h3><p>To connect to the Google Ads API, we need OAuth2.0 credentials and a refresh token from Google Cloud Console and OAuth Playground. These allow us to generate a short-lived access token (Bearer Token) required to hit the API.</p><p>The access token we got will be stored in a remote agent on an AWS EC2 instance. It’s very short-lived (only 1 hour). Therefore, we generate a new one for every API call.</p><p>Below is the mapping task that creates the access token.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*V-n_2DmxtsMrS2RD_FCVLw.png" /></figure><h3>Step 4: Connect to Google Ads API and Load the Data into Snowflake.</h3><p>Using the access token generated in Step 3 and the parameter file containing the GAQL query from Step 2, we pull the data and ingest it into Snowflake.</p><p>Staging table output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9W17pS9IV10JrUjya-d35g.png" /></figure><p>This mapping task retrieves data using parameters such as GAQL, dates, and access token, and then loads it into the Snowflake table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*tz2Owq07SzOqEGqk7bqJCQ.png" /></figure><h3>Brief Conclusion:</h3><p>Designing data integration pipelines for APIs and data sources is a complex process that requires careful consideration of specific requirements. While creating a Google Ads API pipeline, I faced numerous challenges and at one point had to adjust the structure to include guardrails for automated error handling and data backfilling. These guardrails ensure that the pipeline can continue processing even when there is no data or if data retrieval fails.</p><p>Using Informatica Cloud’s powerful toolset, we are able to streamline and optimize the API data pull process, resulting in a more efficient and effective workflow. As a data analyst, I find this process very intellectually stimulating and enjoyable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3dca8b78ab3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/minyen-hsieh/efficiently-ingest-data-into-snowflake-with-informatica-cloud-a3dca8b78ab3">Efficiently Ingest Data into Snowflake with Informatica Cloud</a> was originally published in <a href="https://medium.com/minyen-hsieh">Minyen Hsieh</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evaluating Marketing Campaign Effectiveness Through Data]]></title>
            <link>https://medium.com/minyen-hsieh/analyzing-marketing-campaign-performance-37e3690f5916?source=rss-a0b8cd2481a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/37e3690f5916</guid>
            <category><![CDATA[campaign-analysis]]></category>
            <category><![CDATA[data-driven-marketing]]></category>
            <category><![CDATA[google-ads]]></category>
            <category><![CDATA[google-analytics]]></category>
            <dc:creator><![CDATA[Minyen Hsieh]]></dc:creator>
            <pubDate>Sun, 02 Apr 2023 23:04:46 GMT</pubDate>
            <atom:updated>2023-04-23T03:23:57.282Z</atom:updated>
            <content:encoded><![CDATA[<p>Marketing used to be an art. These days, it’s becoming more like a science.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*49H4hDFpzQeQfk-Iy9qyjQ.jpeg" /></figure><p>One of the tasks I’ve done as a marketing data analyst intern in my current position is reviewing/measuring campaign performance. Campaign managers have campaigns that they are running. My role is to go into Google Ads and Google Analytics to help review and optimize campaigns through data. Today, I will share some of the metrics I typically look at when analyzing campaigns, how I interpret them, and the feedback I would give to the campaign managers.</p><h3>Google Ads</h3><h4><strong>Ad Impression:</strong></h4><p>impressions refer to the number of times an ad is displayed to the users. If the impressions are low, it means the ad is not reaching enough people. We can check if our keywords have good volumes behind them. If not, we can expand the keywords by researching on SEMrush. We could also try increasing the bid amount.</p><h4><strong>CTR (Click-Through-Rate):</strong></h4><p>If an ad has a low CTR, that means whatever search keywords we are using and the ad we’re putting out there are considered irrelevant to the users. The ad copy is unattractive and doesn’t speak to the users, so they will not click on it. We need to consider revising ad copy/messaging to make it more compelling and relevant to entice the target audience to click on the ad. We could also optimize the keywords we use by removing irrelevant ones and adding more relevant ones.</p><h4>Bounce Rate:</h4><p>Bounce rate refers to the percentage of visitors who navigate away from the website after viewing only one page. A high bounce rate could indicate that the landing page is not relevant and engaging to the visitors, or there could be technical issues with the website hindering user experience. Typically, a bounce rate above 60% for search ads is a red flag for me; 80% for display ads.</p><h4><strong>Conversion Rate:</strong></h4><p>We look at the conversion rate to<strong> </strong>measure a campaign’s effectiveness in achieving the desired outcomes or conversions, such as filling out a form, subscribing to a newsletter, or downloading our white paper. The benchmark for every company and industry is different. At my company, we typically want 1% (but would love to have 2%). With all the traffic that comes to the website, we have to be converting at a 1% rate to meet our revenue goal every year. That’s just the standard for our team.</p><h4><strong>Ad Assets:</strong></h4><p>Ad assets refer to the various components of an ad, such as headlines, descriptions, images, and videos. For example, if a particular headline or image is performing well, we may choose to use similar elements in future campaigns. On the other hand, if an ad asset is performing poorly, we may choose to remove it or test a different variation to improve results.</p><h4>Cost:</h4><p>We typically have a set budget for a campaign. We need to monitor how much an ad cost over a period of time and ensure it doesn’t exceed our budget. If it does, we must stop the ads or ask for more budget if it’s performing well.</p><blockquote>Take the below <strong>Search Ad</strong> as an example:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pm32gsas4rYY2jkC8tlnNg.png" /></figure><p>We are converting at 3.8%. The cost is right on track (depending on your budget). The bounce rate is super low at 12.70%. With that, the keywords, the ad messaging, and the landing page are all working well together. Why do I say that? because our CTR is pretty good, and the bounce rate is low. The conversion rate is good as well. I will tell the campaign manager that this is a great ad so leave it as is.</p><h3>Google Analytics</h3><p>Above, we were just looking at the performance before users reached our website. We were just making sure that our ads are serving and nothing weird is happening. Now we will go to Google Analytics to see the user behavior on our site. What’s happened once they got on the page, is there anything we need to react to as far as how they are consuming the content? or any of the audiences are performing particularly well/poorly?</p><h4><strong>Source/Medium:</strong></h4><p>Source refers to the website or platform that referred the visitor to the website, while medium refers to the source category, such as email, social media, or search engine. It helps to identify where the traffic is coming from and how visitors find the website.</p><h4><strong>Users:</strong></h4><p>By understanding how many unique users we have, we can get a sense of the reach of our campaign and the potential size of the target audience. Additionally, by comparing the number of Users to other metrics such as Sessions and Pageviews, we can gain insights into the engagement and behavior of the audience on our website or within our campaign.</p><h4>Pageviews:</h4><p>It provides insights into the number of times users have viewed a particular page on a website, which can indicate the level of interest or engagement with the campaign.</p><h4><strong>Page/Session:</strong></h4><p>Page/Session indicates the average number of pages a user visits during a single session on the website. Generally, A higher Page/Session value suggests that users are finding the website content relevant and engaging and are exploring the site more thoroughly. However, on the flip side, it could also mean they are not finding the information they’re looking for, continuing to search and search because we are not answering their question.</p><h4>Bounce Rate:</h4><p>Explained above. Again, we typically want the bounce rate to be lower than 60% for search ads and 80% for display ads for my team.</p><h4><strong>Conversion Rate:</strong></h4><p>Explained above. Again, we typically want to have at least 1%, but different companies have different benchmarks.</p><h4><strong>Company/Visitor Balance</strong>:</h4><p>If the campaign managers are targeting a certain audience, it’s interesting to know who is on the page.</p><h4><strong>Next Page:</strong></h4><p>Looking at what pages users are going to next<strong> </strong>can help identify if users are finding the information they are looking for on the website or if they are encountering roadblocks in the form of dead-end pages or confusing navigation.</p><blockquote>Take the below landing page as an example:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*v3avljqSvPQE9IuUXoqZBg.png" /></figure><p>A huge bulk of the traffic (94.35%) comes from our Google Paid Ads (google/cpc). That means the Google Ads strategy is working for the landing page with 5900 users and 14758 pageviews.</p><p>The bounce rate (23.79%) is super low. That means the messaging and the ad are working really well. *Remember to also look at how many users there are to see if the conclusion is viable. Every page is different, and everything going into the page is different.</p><p>All-encompassing, we are getting a lot of traffic, but the conversion rate (0.5%) is not really there. If generating leads (filling out the form) is the goal of this landing page, the feedback I would give to the campaign manager is - the ads are working because traffic is coming from the ads, and it’s a good user experience because it has a very low bounce rate. However, they are not necessarily converting, so something is missing on the page.</p><p>Now we can think: Usually, in the first touch point, users are not ready to buy the products or talk to a salesperson yet, so they are not filling out a form. They may need more information to help them make a decision and convert. Should we add a video on the page that gives them educational content? Do we actually not want them to convert on this page? Could we design a user journey where we land them on an education page and then lead them to a converting page? Ultimately, it will be up to the campaign manager to decide what changes happen on the page. Here, analysts are just providing insights about if the ads are working, getting traffic, and if they are converting.</p><h3>Brief Conclusion</h3><p>The big thing about being an analyst is taking the numbers and telling the story. When the ads are getting good traffic, what does that mean? Is it because the keywords have good volumes behind them? Do the ads themselves speak to the people? When they get to the landing page, did they stay on? There is something that users like about the page, but they don’t want to make that final push to fill out a form, which is an ultimate goal. Now, why is that?</p><p>Sometimes the page can be perfect, and they are not converting; maybe users are simply not ready yet. Our product (we sell software) isn’t cheap, it’s a big investment for them, so they need to know more than one page to decide if they want to go further. We dig in by looking at the data to figure out those puzzle pieces, put them together and reason through it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37e3690f5916" width="1" height="1" alt=""><hr><p><a href="https://medium.com/minyen-hsieh/analyzing-marketing-campaign-performance-37e3690f5916">Evaluating Marketing Campaign Effectiveness Through Data</a> was originally published in <a href="https://medium.com/minyen-hsieh">Minyen Hsieh</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Power BI Data Visualization for the Executives]]></title>
            <link>https://medium.com/minyen-hsieh/power-bi-data-visualization-for-the-executives-4bfea47a6b0e?source=rss-a0b8cd2481a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bfea47a6b0e</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[reporting]]></category>
            <category><![CDATA[executive-dashboard]]></category>
            <dc:creator><![CDATA[Minyen Hsieh]]></dc:creator>
            <pubDate>Tue, 28 Mar 2023 20:34:48 GMT</pubDate>
            <atom:updated>2023-03-29T13:06:25.252Z</atom:updated>
            <content:encoded><![CDATA[<p>Things to include in dashboards</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZkFnFbd7PzU9L3IIw5RlhQ.jpeg" /></figure><h3>Introduction</h3><p>Power BI is a powerful business intelligence tool that Microsoft developed. It enables users to connect, transform, and visualize data from multiple sources. It is very popular in the job market and is widely used by organizations of all sizes (including my current company) to create interactive data visualizations and business intelligence reports.</p><p>Last week, I was requested to build a Power BI report to showcase my visualization skill. <strong>The audience was executives. The dataset is about the intake and submission of funding applications.</strong> I want to take this opportunity and write down a couple of components I’ve considered including in the dashboard during the creation process and summarize some insights.</p><p><strong>Below is the end product</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*15zbab8FMkyEc8T3aD27QA.png" /></figure><p>Several key pieces of information I’ve considered (or typically would consider) including when building an executive dashboard:</p><h3>1. High-Level KPIs:</h3><p>Having high-level KPIs is crucial in an executive dashboard as it helps executives quickly understand the business’s overall performance. These metrics should tie directly to the team’s overall goals and keep the upper management informed about where we are and if we are hitting our numbers, ensuring that the business is moving in the right direction.</p><p>In my dashboard, again, the dataset is about the intake and submission of funding applications. Therefore, the High-Level KPIs I included were <strong>Applications Received</strong>, <strong>Applications Submitted</strong>, <strong>How many have been funded </strong>(%), <strong>Total Grant Expended</strong>, and <strong>Average Grant Expended</strong>.</p><h3>2. Trend Analysis</h3><p>Trend analysis provides a historical context that enables executives to evaluate the effectiveness of past strategies and make informed decisions about future investments. It also helps identify potential areas of concern or opportunity by monitoring performance over time.</p><p>In my dashboard, I utilized a waterfall chart to demonstrate the running total of the submitted applications, showing how the numbers are adding up month over month. It looks like most applications are submitted during the first two months of the year. Starting in March, the number of applications submitted started to diminish quickly.</p><h3>3. Comparative Analysis</h3><p>Comparative analysis gives executives an understanding of how the business performs in different segments or divisions. It could help executives understand the overall business composition, enabling them to allocate resources and to evaluate whether the performance in different segments is on track.</p><p>In my dashboard, it looks like 65% of the applications came from Bay County, followed by Jackson County at 10%. A big chunk belongs to Rehabilitation, followed by Replaced, then Reconstruction. 70% of the rehabilitation and reconstruction submitted applications have been funded, but no application has been funded yet for Replaced.</p><h3>4. Operational Metrics:</h3><p>Operational metrics offer real-time insights into the operational performance of the business. These metrics provide a clear picture of how efficiently the team is operating and highlight areas for improvement.</p><p>In my dashboard, the bottom left chart monitors the workflow stages. It allows us to see how we are progressing in the application process. Most submitted applications are in the workflow stage of Step 7 (Award Calculation and Grant Signing) and Step 9 (Project Closed Out). As time passes, we should expect more applications to come into the later stage of the workflow.</p><h3><strong>Brief Conclusion</strong></h3><p>Overall, the executive dashboard should be easy to navigate, visually appealing, and provide a clear and concise picture of the team’s performance. Lastly, keep in mind to always AVOID using complex charts. Using overly complicated charts can often hinder understanding and create confusion, leading to ineffective decision-making. Try using simple charts so you can communicate complex data and information clearly and understandably.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bfea47a6b0e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/minyen-hsieh/power-bi-data-visualization-for-the-executives-4bfea47a6b0e">Power BI Data Visualization for the Executives</a> was originally published in <a href="https://medium.com/minyen-hsieh">Minyen Hsieh</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web Intern - Web Project Management Workflow]]></title>
            <link>https://medium.com/minyen-hsieh/web-intern-web-project-management-workflow-f4a6650e895?source=rss-a0b8cd2481a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4a6650e895</guid>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[marketing-strategies]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[digital-marketing]]></category>
            <dc:creator><![CDATA[Minyen Hsieh]]></dc:creator>
            <pubDate>Thu, 21 Apr 2022 01:05:20 GMT</pubDate>
            <atom:updated>2022-04-21T03:32:49.411Z</atom:updated>
            <content:encoded><![CDATA[<p>Website / Marketing Strategy / Digital Project Management</p><h3>Introduction</h3><p>I joined the website team at the University of St. Thomas as a student web intern last year May 2021- so it’s been about a year. In this article, I am going to talk a little bit about my team and how the workflow of a web project is developed from ideation to implementation. Just a reminder, this is written simply from my own understanding and perspective as an intern.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lX6j2qQ-y7vJ2tLv_JjO8g.jpeg" /></figure><h3><strong>Team Structure Overview</strong></h3><p>The team that I am on is called <strong>Marketing, Insights, and Communication (MIC)</strong>. This team works collaboratively with schools, colleges, and departments across the University on anything about the websites, marketing, content support and graphic design. Under this big MIC umbrella, there are 4 divisions which are all counterparts of each other: <strong>1- Marketing Strategy,</strong> <strong>2- Creative</strong>, <strong>3- Public Relations</strong>, and <strong>4- Insights/Analytics</strong>. The Marketing Strategy division is where I am placed.</p><h3><strong>Web Project Process and Timeline</strong></h3><p>As a web intern, my major duty is to build and maintain pages on both internal (OneStThomas) and external (stthomas.edu) websites using several different Content Management Systems (CMS). However, before the building requests were passed down to me, the projects themselves would first have had gone through a couple of different phases, collectively called the “Planning &amp; Activation” stages.</p><p>Typically, a website project would follow the waterfall methodology. Taking a website redesign project for a College that we recently completed as an example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1007/1*Shhp17Z9hU4TcHkghZP3xQ.png" /></figure><ol><li><strong>Kickoff:<br> </strong>It started with a grand kickoff where the key stakeholders (i.e. the Deans of the College, Assistant Team, Marketing Team) all came together to communicate and connect. That meeting ensured everyone was on the same page about the purpose of the project and every ounce of effort that had to be in favor for this purpose, and discussed the expected timeline.</li><li><strong>Research &amp; Discovery:<br> </strong>There were many people involved in this phase. Each college had one or two marketing representatives that the VP of Marketing Strategy on the MIC team supervised. They conducted stakeholder interviews, and marketing research (ex: buying market research that was publicly/commercially available), oftentimes looking at it from an enrollment standpoint. They then developed personas, defined target audiences, wrote user stories in order to intrigue prospective students to select St. Thomas as their University. The VP of Marketing Strategy, on the other hand, looked at the project from an overarching perspective and decided WHAT and WHY we are doing it, as well as how much time and effort it would require. This encompassed real-world implications such as budget setting on Google Ads, printing ads, TV ads, etc. The Insights &amp; Analytics team was also brought in to discuss how we would get people into our system - get them to indicate their interests and fill out the RFI (request for information) form on our webpage (aka Leads), and into our marketing funnel.</li><li><strong>Structure &amp; Design:<br> </strong>For this phase, we actually hired an outside contractor to assist us in creating site maps, page tables, and wireframes(visual mock-ups). Stakeholders were on board to review and give their opinion on the web design and navigation.</li><li><strong>Content Development:<br> </strong>Writers developed the content following the SEO guidance and best practices. SMEs (subject matter experts) and SEO analysts reviewed the content. After that, it finally got passed down to me as a web intern to start building out the pages using the CMS. The CMS we use for the external site is called Cascade. A lot of the outside companies use WordPress as their CMS. At St. Thomas, we use WordPress as well but only for <a href="https://www.tommiemedia.com/">TommieMedia </a>and <a href="https://news.stthomas.edu/">Newsroom</a>.</li><li><strong>Test, Correct, Prepare:<br> </strong>After the pages were built and before they were launched, we did the final QA (quality assurance), making sure there were no issues such as broken links, misspellings, malfunctioning CTA (call to action), and confirming the accessibility meets the requirements (ex: alt tags behind in the image, header usages are correct).</li><li><strong>Launch and Post Launch:<br> </strong>The whole site was finally launched and went live. After the launch, we did various cleanups. We used a software called SiteImprove where we configured and generated reports including redirect links, dead links, misspelled words, etc, and performed troubleshooting based on the reports.</li></ol><h3><strong>Brief Conclusion</strong></h3><p>Being in this position for about a year, I have picked up expertise about website administration, design, and digital communication. Most of the time, I (as a web intern) only got the “build these pages” requests, but there were actually tons of thinking process, planning and discussions that had happened before. This is to ensure that we will be conveying the right message, helping people effortlessly connect the dots, and engage with our website.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4a6650e895" width="1" height="1" alt=""><hr><p><a href="https://medium.com/minyen-hsieh/web-intern-web-project-management-workflow-f4a6650e895">Web Intern - Web Project Management Workflow</a> was originally published in <a href="https://medium.com/minyen-hsieh">Minyen Hsieh</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[eCommerce SQL Project - Part 2. Product Sales Analysis]]></title>
            <link>https://medium.com/minyen-hsieh/ecommerce-sql-project-part-2-product-sales-analysis-c23b42b52ed8?source=rss-a0b8cd2481a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/c23b42b52ed8</guid>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[web-traffic]]></category>
            <category><![CDATA[sales-analysis]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Minyen Hsieh]]></dc:creator>
            <pubDate>Tue, 17 Aug 2021 03:50:56 GMT</pubDate>
            <atom:updated>2022-04-20T22:20:29.121Z</atom:updated>
            <content:encoded><![CDATA[<p>Seasonality &amp; Business Pattern / Analyze Product Launch / Product Conversion Rate</p><h3>Introduction</h3><p>Following the <a href="https://medium.com/minyen-hsieh/ecommerce-sql-project-part-1-2820b841e74b">eCommerce SQL Project - Part 1. Web Traffic Analysis</a>, here comes the SQL Project - Part 2. I will use the database to dive more deeply into the channel mix, explore paid/free traffic, and utilize time series analysis to understand product sales trends and seasonality to illustrates the company’s growth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*3MnhXPEH1e8_KmJOWAs8MQ.jpeg" /></figure><h3>Project Background</h3><p><strong><em>The SITUATION:</em></strong> Now, our company Maven Fuzzy Factory has been in the market for 3 years and has generated enough growth to raise a much larger round of venture capital funding. The CEO is close to securing the company’s next round of funding, and she needs my help to tell a compelling story to investors. I will need to pull the relevant data and help the CEO craft a story about a data-driven company that has been producing rapid growth.</p><p><strong><em>The OBJECTIVE:</em></strong> Use SQL to extract and analyze traffic and website performance data to craft a growth story that the CEO can sell. I will dive into the marketing channel activities, the website improvements, sales activities that have contributed to the company’s success to date, and use the opportunity to flex my analytical skills for the investors.</p><h4>Important Events</h4><ul><li>01/2013: 2nd Product (love bear) was launched, targeting couples for Valentine’s day.</li><li>12/12/2013: 3rd Product (birthday bear) was launched, targeting the birthday gift market.</li><li>02/05/2014: 4th Product (bear accessory) was launched as a cross-sell item.</li><li>12/05/2014: 4th Product (bear accessory) was made available as a primary product - not just a cross-sell item anymore.</li></ul><h3>7 Analyses Requests From the CEO</h3><p>1. First, I’d like to show our volume growth. Can you pull <strong>overall session and order volume, trended by quarter</strong> for the life of the business? Since the most recent quarter is incomplete, you can decide how to handle it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*htGXHrBEfVn2Fw6seU8G4Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*99wL5t8CIpC58KPHnGRs7Q.png" /></figure><p>Now we’re at the end of a 3 year run of this business, we can see some pretty dramatic growth. At the very beginning, there were only have 60 orders, now we’re at about 100 times that many orders. Similar large growth in session volume. It’s been pretty impressive.</p><p>2. Next, let’s showcase all of our efficiency improvements. I would love to show <strong>quarterly figures</strong> since we launched, for <strong>session-to-order conversion rate, revenue per order, and revenue per session</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*qwZo_Iqj-FkPxMH3WkV2rg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*zssYwVpgDNltQ2YDgQUKBg.png" /></figure><p>Similar story to above session growth. We’ve gone from session-to-order conversion rates around 3% to up over 8% in the most current quarter. Revenue per order has gone from a flat $49.99 back when the company only sold one product to starting to do some cross-sell and optimization to now receive revenue per order up above $60. Revenue per session was initially around $1.6, now has risen all the way up to over $5 in the most recent quarter.</p><p>** That metrics <strong>revenue per session</strong> is very important because it impacts how much your marketing director will be able to spend to acquire traffic. The higher he can bid, the more traffic you’re going to win because you will be higher in the auctions and people will see your ads more.</p><p>3. I’d like to show how we’ve grown specific channels. Could you pull a <strong>quarterly view of orders</strong> from <strong>Gsearch nonbrand, Bsearch nonbrand, brand search overall, organic search, and direct type-in</strong>?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-rmAKux3jj_1FvxDwr6Plw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3nK0eGmURdSM1b0vvAwErQ.png" /></figure><p>One thing in particular that the potential investors would be excited about is the <strong>brand search, organic search, direct type-in</strong> really picking up. Back in 2012 Q2, we have Google Search nonbrand: brand+free ratio being almost 6:1. In 2015 Q1, the ratio is about 2:1. The business has become much less dependent on these paid nonbrand campaigns and is starting to build its own brand, organic and direct type-in traffic, which has a better margin and takes you out of the dependency of the search engine.</p><p>4. Next, let’s show the overall <strong>session-to-order conversion rate trends</strong> for those same channels, <strong>by quarter</strong>. Please also make a note of any periods where we made major improvements or optimizations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J2Z2IxOeQTTomqV3ySEsvw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*DmlKqIAGj1Qd5vAkAxWvzA.png" /></figure><p>Google Search non-brand campaign CVR has increased from 3.2% to well over 8% in the most recent quarter, more than doubling conversion. Similar story with Bing Search, which we were not running a non-brand campaign originally, but we have been able to increase that.</p><p>Excitingly, our direct channels - Brand Search, Organic Search, Direct Type-In, have all seen substantial improvements from where they initially were to where they are now. These efficiency improvements will impress investors and it shows that we know what we are doing and striving to improve the business all the time.</p><p>5. We’ve come a long way since the days of selling a single product. Let’s pull <strong>monthly trending for revenue and margin by product, along with total sales and revenue</strong>. Note anything you notice about seasonality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*_IvV1T6XKy4iPBF_bu2cmQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MD5rRkbQejJo3o3Pu4ZoMg.png" /></figure><p>The mrfuzzy revenue was originally around $3000/month and now we have raised it up to $5500 in February 2015 (March is a partial month). There were even some high months around November and December (Thanksgiving, Christmas) in the $72000 and $79000 range. Apparently, there is a rush leading up to the holiday season at the end of the year, and that is repeated each year.</p><p>If we look at love bear, there is a major pop in February every year. This makes sense because this bear was targeted to couples for giving to one another as a gift on Valentine’s Day.</p><p>With the birthday bear and mini bear, we may see some similar trends with a spike at the end of the year. It’s a little hard to tell because we don’t have as much data to understand seasonality.</p><p>6. Let’s dive deeper into the impact of introducing new products. Please pull monthly sessions to the /products page, and show how<strong> the % of those sessions clicking through another page</strong> has changed over time, along with a view of how <strong>conversion from /products to placing an order</strong> has improved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/1*UlW6FFwRRhcjo1CLA3EATA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/1*b1UEXST72MHnR-KotSxF2w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*qfgRzYvFcFU9Q6Yxtu9iSA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*4OBF3n5cAhfQbU3zWsmtoA.png" /></figure><p>The main thing to call out other than just the general growth in the sessions making it to the product page is the clickthrough rate going up from 71% at the beginning of the business to 85% in the most recent month. Similarly, the rate of people seeing the product page and then converting to a full paying order has gone up from 7% all the way up to 14% in the most recent month.</p><p>All of these improvements that the business has made (i.e. adding additional products that may appeal better to other people, bringing in a product at a lower price point) have positively helped to contribute to the health of the business.</p><p>7. We made our 4th product available as a primary product on December 05, 2014 ( it was previously only a cross-sell item). Could you please pull sales data since then, and show how well <strong>each product cross-sells from one another</strong>?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*9S8OwjJvfKbmaJra2-S4vQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*KZAXJ-AqCk4yrw1XmfiyFA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*wBPrK7aHDu7b6lHVGwJssA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*iFfSiTcMd18c1QYmgctoFA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*HvGuAbSYtTxbwREPjJOTnQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WkxrI7nmD8c5Lisq_R7H3g.png" /></figure><ul><li>Product 1 is still the heavy hitter, followed by product 2, 3. Product 4 is the least likely to be the primary product.</li><li>Product 4 looks like it cross-sold pretty well to product 1, 2, 3. That’s understandable because product 4 was at the lower price point so it’s more of a snackable add-on purchase for the customers. Above 20% of the orders for primary product 1, 2, 3 end up also purchasing product 4.</li><li>One interesting thing is that Product 3 seems to cross-sells pretty well for product 1.</li></ul><h3>Conclusion</h3><p>Acting as an analyst, seeing the evolution of the business and how the business took turns in directions based on the analyses results, gives me a concrete way of viewing the value that an analyst can bring to a business. Not only did I improve my SQL data program skills, but I also developed some eCommerce business acumen. When we optimize a business, it makes everything more competitive. Our website gets better, we are selling products in a better way, we then can go to the market and compete better in the ads auction, which eventually will result in more traffic volume.</p><p><a href="https://github.com/minxyen/ecommerce-sql">GitHub - minxyen/ecommerce-sql</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c23b42b52ed8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/minyen-hsieh/ecommerce-sql-project-part-2-product-sales-analysis-c23b42b52ed8">eCommerce SQL Project - Part 2. Product Sales Analysis</a> was originally published in <a href="https://medium.com/minyen-hsieh">Minyen Hsieh</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[eCommerce SQL Project Part-1. Web Traffic Analysis]]></title>
            <link>https://medium.com/minyen-hsieh/ecommerce-sql-project-part-1-2820b841e74b?source=rss-a0b8cd2481a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/2820b841e74b</guid>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[conversion-rate]]></category>
            <category><![CDATA[digital-marketing]]></category>
            <category><![CDATA[web-analytics]]></category>
            <dc:creator><![CDATA[Minyen Hsieh]]></dc:creator>
            <pubDate>Tue, 03 Aug 2021 01:19:19 GMT</pubDate>
            <atom:updated>2022-04-21T03:49:17.126Z</atom:updated>
            <content:encoded><![CDATA[<p>Traffic Source / Bounce Rates / AB Testing / Conversion Funnels</p><h3>Introduction</h3><p>In this SQL project, I “acted” as an eCommerce Database Analyst for Maven Fuzzy Factory, an online retailer which had just launched its first product. Along with the CEO, Marketing Manager and Website Manager in this startup team, I put myself in the shoes of an analyst and helped steer the decisions of a business by analyzing marketing channels, measuring website performance, and exploring the product portfolio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PSZft6c56EUN_M3OiGzMBg.jpeg" /></figure><h3>Overview of the Maven Fuzzy Factory Database</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xj_A0ajTZaKeoP2cHXN9FA.png" /><figcaption>EER Diagram, created in MySQL Workbench</figcaption></figure><p>Above are the 6 most critical and fundamental tables that I was working with. They are stripped down and simplified a little but still host the key data (i.e. website activity, products, orders and refunds) that an e-commerce database analyst would typically be working with on a daily basis.</p><p>Before jumping into the project, I would like to briefly cover some web/digital marketing buzzwords:</p><h4>UTM (Urchin Tracking Module) Tracking Parameters</h4><p>When businesses run paid marketing campaigns, they often obsess over performance and measure everything - how much they spend, how well traffic converts to sales, etc. Paid traffic is commonly tagged with tracking (UTM) parameters, which are appended to URLs. It allows us to tie website activity back to specific traffic sources and campaigns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uvFjPL_ErBlV7GsH8srgRw.png" /></figure><p>In the above URL, “?” tells the browser that everything coming next is NOT going to impact where the browser should look to find the page. It is simply on there for tracking purposes. The parameter value pairs (yellow part) are separated by ampersands(&amp;).</p><p>In today’s database,</p><ul><li>UTM sources: include gsearch(Google) and bsearch(Bing).</li><li>UTM campaigns: include nonbrand and brand. The nonbrand group are people looking for a product category i.e. “Teddy Bears”, “ Buy Toys Online”, etc. The brand group are people searching for your company specifically by name i.e. “Maven”, “Fuzzy Factory”.</li><li>UTM contents: include g_ad_1, g_ad_2, b_ad_1, b_ad_2. A lot of places will use utm content to store the name of a specific ad unit that they’re running.</li></ul><h3>Project Background</h3><p><strong><em>The SITUATION:</em></strong> Maven Fuzzy Factory has been live for ~8months, and the CEO is due to present company performance metrics to the board next week. I as an analyst, will be the one tasked with preparing relevant metrics to show the company’s promising growth.</p><p><strong><em>The OBJECTIVE:</em></strong> Use SQL to extract and analyze website traffic and performance data from the Maven Fuzzy Factory database to quantify the company’s growth, and to effectively communicate the story of how we have been able to generate that growth.</p><h3>8 Analyses Requests From the CEO</h3><p>1.Gsearch seems to be the biggest driver of our business. Could you pull <strong>monthly trends</strong> for <strong>gsearch sessions and orders</strong> so that we can showcase the growth there?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*xWWDS_L6yDgNQd95xLXeqA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*1cgUagkgVtC-jXpknwVHiw.png" /></figure><p><strong>[Results/Insights]:</strong> Clearly, the session volume is growing over time. In the first month, there were only 1860 sessions, now there are 8895.</p><p>Orders are advancing substantially as well. If we look at the order volume from March or the first full month of April at 92(orders), then now we are already at about 4 times that order volume.</p><p>The conversion rate started off from roughly 2.6% over the first 3 months. By the final month, we are up over 4%. That is a pleasant improvement for the business.</p><p>2. Next, it would be great to see a similar monthly trend for Gsearch, but this time <strong>splitting out nonbrand and brand campaigns separately</strong>. I am wondering if brand is picking up at all? If so, this is a good story to tell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*Wkxk1isY_K579_psZN6APw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*NklSZPzBuySx09hTpA0aYA.png" /></figure><p><strong>[Results/Insights]: </strong>Brand campaigns represent someone going into search engines, explicitly looking for our business, and hit the our Ad (- yes, companies bid on their own terms, largely to box out competitors). The board wants to know whether the company will always have to rely on paid traffic or if the brand is building over time. This is one of those ways that will show whether or not the company is getting brand traction. Here, the result showing that brand sessions have increased dramatically is a good sign. The investors are going to like it.</p><p>3. While we are on Gsearch, could you dive into nonbrand, and <strong>pull monthly sessions and orders split by device type</strong>? I want to flex our analytical muscles a little and show the board we really know our traffic sources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*PHHGTTIp9LhglcucKjm7AQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*F1SW2y839_UH6toOaj8XEw.png" /></figure><p><strong>[Results/Insights]:</strong> what we see here is a lot more desktop sessions than mobile. From the beginning, it was a little less than a 2:1 ratio (desktop:mobile), but at the end of this time period, we’ve got more than a 3:1 ratio. If we look at the orders, it’s even more drastic. We had a 5:1 ratio at the beginning of the period, and by the end, we’re almost looking at a 10:1 ratio.</p><p>4. I’m worried that one of our more pessimistic board members may be concerned about the large % of traffic from Gsearch. Can you pull <strong>monthly trends for Gsearch, alongside monthly trends for each of our other channels.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*1IYPcTPn6N3O210mNDS-KA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*fiWVLOY6Q6gmIxkBkNUF0w.png" /></figure><ul><li>Here, we have UTM source values of Gsearch(Google) and Bsearch(Bing). Within those, we have the UTM campaign values of nonbrand and brand. These are our paid channels, but we would also like to dig into other channels as well i.e direct type-in and organic search.</li><li>Direct type-in traffic: When UTM source and UTM campaign(paid parameters) are NULL. At the same time, the http referrer is also null, meaning no referring domain - all 3 are NULL. then we know it’s a direct type-in traffic.</li><li>Organic search traffic: When paid parameters(utm_source, utm_campaign) are NULL, but we have a search engine as the refer(http_referer), then we know it is organic search traffic. It’s coming from the search engine, but it’s not tagged with our paid parameters. That’s how we’ll identify that as organic search traffic.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*iVdp8-iMxRkJrBdWpRrfGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*VuC-2gdKcoA7WCVExJjCbg.png" /></figure><p><strong>[Results/Insights]:</strong> In particular, the board and CEO are going to be very excited about organic search and direct type in sessions building up because these represent sessions that the company is not paying for. In contrast, with the gsearch/bsearch paid sessions, there is a cost of customer acquisition for any orders that come in. That marketing spend eats into the margin. However, there’s no additional variable cost for direct type-in and organic search traffic.</p><p>5. I’d like to tell the story of our website performance improvements over the course of the first 8 months. Could you pull <strong>session to order conversion rates, by month?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*X7BWIPdXEUwL1xfyvZal3w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/294/1*41yYYIiaJ4a4ZVB4lOvreQ.png" /></figure><p><strong>[Results/Insights]:</strong> The conversion rate started from about 2.6%, 3.5%, and gradually climbing up into the 4%.</p><p>6. For the gsearch lander test, please <strong>estimate the revenue that test earned us.</strong></p><p>* the website manager ran a new custom landing page (/lander-1) in a 50/50 A/B testing against the homepage(/home) for the gsearch nonbrand traffic from Jun 19 - July 28.</p><p>In other words: Compare the new lander with the previous lander, which one makes us more money? How much more? Quantify this in terms of monthly revenue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*bt13fsJPcsbcPVZVRfFJXg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/189/1*4wh1ismaag1oiJL2JEo5Xw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*kt-M-PGb0re4HT8v0jdnjw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/239/1*wKT2GjUyZponustuJMA67w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*jhy2LcKdREzzdXvpDF5wCQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/211/1*tBVJy4TYDQbRmYH8KjsY-Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*umFDv5DhfT0yPlYQyh-4rQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*6Uq6a_AXJ-aVeiGP_fe5EA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*QaLzTNU1B_oBieE6XytQiw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/1*sSluBl7YPsWW9nis6oV9Tw.png" /></figure><p><strong>[Results/Insights]:</strong> The result table shows the CVR for both pages. lander-1 is fairly better — not quite a whole percentage point better, but approximately 0.0088% additional orders per session. After we get the lift, we need to find the most recent pageview for gsearch nonbrand where the traffic was sent to ‘/home’.</p><blockquote>In marketing, “lift” represents an increase in sales in response to some form of advertising or promotion. Monitoring, measuring, and optimizing lift may help a business grow more quickly.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*MBCq0GSro-ya-_ozeFfYHw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/1*9a4_mzN5RA4Xqtz5LAlpZQ.png" /></figure><p>“most_recent_gsearch_nonbrand_home_session” is 17145. This is the maximum session id where we had gsearch nonbrand traffic going to ‘/home/’ page. Since then, all of the traffic has been rerouted to ‘/lander-1’. Then next, we can try to see how many sessions we‘ve had since this traffic reroute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*Tq0HU8RO7ZT-NV11usGCEA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/148/1*LeYTN9eGlksLL3buXmBFEw.png" /></figure><p><strong>[Results/Insights]:</strong> We had 22977 sessions since after rerouting all traffic to lander-1. 22972 (sessions) * 0.0088 (incremental conversion rate) = 202 (incremental orders) since the home page A/B test concluded.</p><p>If we talk about it in terms of orders per month, this is generating an extra 50 orders per month. Roughly 4 months (7/29 ~ 11/27), so roughly 50 extra orders per month.</p><blockquote>Incremental Conversion: When we talk about “incremental conversion”, we are talking about how well a new version of something converts compared to the previous version. Conversion Rate B — Conversion Rate A = incremental conversion.</blockquote><p>7. For the landing page test you analyzed previously, it would be great to show a <strong>full conversion funnel from each of the two pages to orders.</strong> You can use the same time period you analyzed last time (Jun 19 — Jul 28).</p><p>Below I first tried to find out which version of the pages people saw, and how far they made it in the conversion funnel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*yC7Pan6h3ogpI-3tL5WmQw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*ms_Ud-uC495pB8_zRzt9VA.png" /></figure><p>Here, we’ve got the website session and every pageview url for that particular session id, and a flag(1/0) to say whether this was the home page, lander-1, etc. We will use this as a subquery below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*oP-C_kprXEPhSg1YiFO78g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*DlyF2e7Crt2TGaFPHM-s2w.png" /></figure><p>Above result displays: for each home page, did they see the home page or did they see the custom lander(‘/lander-1’)? And we have various made-it rate to different points in the funnel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*SQXpPctENn-gA19FS1aPEA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*a7dCI3sAQNsp9Pqb-NDigg.png" /></figure><p>The final table reveals what percentage of people click through from the lander, products, … etc.</p><p>8. I’d love for you to <strong>quantify the impact of our billing page AB test</strong> as well. Please analyze the lift generated from the test (Sep 10 — Nov 10), in terms of <strong>revenue per billing page session</strong>, and then pull the number of billing page sessions for the past month(10/27–11/27) to understand monthly impact.</p><p>* the website manager ran a new custom billing page (/billing-2) in a 50/50 A/B test against the original billing page(/billing) from Jun 19 — July 28.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*FcJffM8SbXBrlD1dZi4y0A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*EzJIHssMauRyETnWroklNg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*fThB8QpkoZPq0cBjZE5Kzg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/1*vYQ0sSg5PXG3KZQRAxWWUA.png" /></figure><p><strong>[Results/Insights]:</strong></p><ul><li>$22.8 revenue per billing page seen for the old version.</li><li>$31.34 for the new version.</li><li>There is a major lift in revenue coming from this change. Lift: $8.54 per billing page view - Every time a customer sees the billing page, we are now making $8.54 more than we were previously.</li></ul><p>Lastly, we’re going to look at how many sessions we’ve had where somebody hit the billing page within the past month (10/27–11/27).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*O61Oxym0b3WPpkudZ3g6vA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/175/1*Jr4Hs_l9bhMe5NmSTZcCUA.png" /></figure><p><strong>[Results/Insights]:</strong></p><ul><li>1193 billing sessions within the past month</li><li>Lift: $8.54 per billing session</li><li>Value of this billing test: 1193 * $8.54 = 10188.22 over the past month.</li></ul><h3>Conclusion:</h3><p>This wrapped up part 1 of the project. <a href="https://medium.com/minyen-hsieh/ecommerce-sql-project-part-2-product-sales-analysis-c23b42b52ed8">Part 2 will come in the next article.</a> I am absolutely loving this project so far. It provided me with an opportunity to go through the life of this business as if I was really a part of it. I was able to see what happened and how the business evolved based on the analyses I conducted. Also, it allowed me to solidify my web knowledge and get a chance to practice my SQL skills in a simulated real-world situation.</p><p><a href="https://github.com/minxyen/ecommerce_sql">GitHub - minxyen/ecommerce_sql</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2820b841e74b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/minyen-hsieh/ecommerce-sql-project-part-1-2820b841e74b">eCommerce SQL Project Part-1. Web Traffic Analysis</a> was originally published in <a href="https://medium.com/minyen-hsieh">Minyen Hsieh</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[eCommerce Button’s Color A/B Test Analysis using R Language]]></title>
            <link>https://medium.com/minyen-hsieh/a-b-testing-e-commerce-buttons-color-experiment-e0e30c9c31eb?source=rss-a0b8cd2481a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0e30c9c31eb</guid>
            <category><![CDATA[e-commerce-business]]></category>
            <category><![CDATA[case-study]]></category>
            <category><![CDATA[a-b-testing]]></category>
            <category><![CDATA[r-language]]></category>
            <dc:creator><![CDATA[Minyen Hsieh]]></dc:creator>
            <pubDate>Thu, 22 Apr 2021 14:55:49 GMT</pubDate>
            <atom:updated>2022-04-20T22:15:45.239Z</atom:updated>
            <content:encoded><![CDATA[<p>Would new add-to-cart button color increase the purchase amount?</p><h3><strong>Introduction</strong></h3><p>I recently took a course called <strong>Business Analytics with R Language. </strong>I learned many statistical concepts from a case study related to A/B Testing experiment and would like to document them here.</p><p><strong>Case study background in short- </strong><br>An online U.S.-based E-commerce company called ABC corp. conducted a user experience interview. Several customers across countries stated that they sometimes couldn’t find the add-to-cart button and ended up not completing the purchase process. The CEO of ABC corp. suggested changing the color of the button from gray(original) to green. To confirm if this change will be effective and eventually launched or not, ABC Corp. did a A/B Testing experiment on 20,000 users from 01/01/2017 to 01/30/2017. As a data scientist, you need to evaluate the test results and report <strong>[Business Problem] if changing the button’s color from gray to green (truly) results in a higher purchase amount ?</strong></p><p><strong>Tools: </strong>R Studio</p><p><strong>Knowledge Involved:</strong> A/B Testing, t-Test, Analysis of variance (ANOVA), Tukey’s Test, Data Visualization with ggplot2</p><p><a href="https://github.com/minxyen/button-experiment">GitHub - minxyen/button-experiment</a></p><h3>What is A/B Testing?</h3><p>A/B Testing is also known as Controlled Experiment. It’s widely used in industries to make product launch decisions. In the simplest form, there are two variances: Control A and Treatment B. Typically, the control group uses the existing feature, whereas the treatment group uses the new feature. The test result allows us to evaluate a feature with a subset of users to infer how it may be received by all users. In this case study, the existing feature is the gray add-to-cart button, and the new feature is the green add-to-cart button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*PxhRo83oMMuVAxNXw6K0hw.jpeg" /></figure><h3>Step 0: Load Library/Data</h3><p>It’s a simulated online e-commerce dataset which includes [test.table]: purchase information &amp; [user.table]: user information</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sUip26GxdTZAsPkKkNwhdw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4_7vcaSqUIUWECQSMsBTrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*XouAI01KyEsTF9D7VRtXrg.png" /><figcaption>test.table (left) — user.table (right)</figcaption></figure><p>The meaning of each variable is as follows:</p><pre><strong>user_id</strong>: unique id of each user.<br><strong>data:</strong> purchase date<br><strong>device:</strong> what device was used when purchasing, pc/ios/android.<br><strong>test:</strong> color button shown, 0(control):gray, 1(treatment):green<br><strong>purchase amount:</strong> how much the user has spent.<br><strong>gender:</strong> gender of the user, female or male.<br><strong>service:</strong> membership level. normal - premium - golden(highest)<br><strong>age:</strong> user&#39;s age in years.<br><strong>country:</strong> user&#39;s country</pre><h3>Step 1: Data Verification / Data Preprocessing</h3><p>Let’s first verify if all the users in the [test.table] can also be found in the [user.table].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3s0n4B9MN4OhTxPwYdUqVA.png" /></figure><pre>[test.table] unique users: 19871</pre><pre>[user.table] unique users: 20000</pre><pre>[inner joined both tables] unique users: 19871<br>-------------------------------------------------------------------- -&gt; All users in the [test.table] have their corresponding information in the [user.table].</pre><p>Next, let’s see if the data sizes in the treatment group and control group are balanced. Having a balanced sample size in the both groups will lead to a more conclusive result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FZ0IYmbl7ZYKIeyhzHt66w.png" /></figure><pre>[treatment group (test == 1)] data size: 50012</pre><pre>[control group (test == 0)] data size: 49988</pre><pre>-&gt; Counts are similar. Balanced</pre><p>Next, verify the <strong>experiment entity</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ERmk-Lyoi5I4VLyc2ynpjQ.png" /></figure><p>We see the same user appeared in both Treatment group and Control group. This means the experiment is using “per purchase” as the <strong>experiment entity</strong> instead of “per users”. In other words, every time a user purchased, the individual was randomly shown either a green or gray button. The same user might see a different color in every transaction.</p><p>From the analysis viewpoint, we need to clarify that we’re using “per purchase” as the experiment entity. However, this kind of experiment design may confuse the customers, making them question why the add-to-cart button is sometimes green, versus gray.</p><p>After verifying the experiment entity, we can now join the table and correct each variable type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xNvx6TtD4gnhMLYedRRNVA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lc8yubVK2DsdCRfcW4nrhg.png" /></figure><h3>Step 2: Descriptive Statistics</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ko-eVbzkejVC8ADIEEBcWA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tDr-gC3iNJQOWikuDs7h2g.png" /></figure><p>Several Findings -</p><ul><li>Most of the people are browsing from PC Web and IOS APP; Fewer from Android APP;</li><li>Most of the users are adults (age:25–64).</li></ul><h4>Differences Within Each Variable</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vhMSFIm3yFlYoSh0X9Mlbw.png" /><figcaption>Treatment Group vs. Control Group</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eOOtQhEMnBidDtjZjlfn4Q.png" /><figcaption>Devices</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4wf3vNjSeIlP-N5Tib9m0Q.png" /><figcaption>gender</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bKm3RUh3Zswl5Sfh56hsgA.png" /><figcaption>services (membership level)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l7hWnhK-Cl42kFg_zc36eA.png" /><figcaption>age group</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rI2qUvhtGus7UUgiQYB97g.png" /><figcaption>countries + test (Cross effect)</figcaption></figure><p>Several Findings -</p><ul><li>Test: Purchase amount is a lot higher in the treatment group. Changing to green button seems to be effective.</li><li>Devices: IOS app has the highest purchase amount whereas Android app has the lowest.</li><li>Country: In most countries, green(1) &gt; gray(0). Surprisingly, it’s the opposite( 0 &gt; 1) in Japan.</li></ul><h3>Step 3: Data Analysis</h3><h4>Independent Samples t Test:</h4><p>The goal of a t-test is to compare means and see if they are significantly different from each other. We used it to see if there is a true difference between the Treatment group and Control group?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UYD309Q03orW3qwygDAPcA.png" /><figcaption>t-test</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DkLWaJ5NqNXey33Q5jDotA.png" /></figure><p>Finding -</p><p>The p-value is &lt; 2.2e-16, meaning the difference is statistically significant. We can say, at 5%, there is enough evidence to support the claim that the mean purchase amount of the Treatment Group is greater than the Control Group.</p><h4>Analysis of Variance, ANOVA</h4><p>The ANOVA test allows a comparison of more than two groups at the same time to determine whether a relationship exists between them. We used it to find out what factors would affect a customer’s purchase amount?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lGL-c89Hyeu4kMbl6UkHXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eyAZ2tnIoZNfpovfSYpraA.png" /></figure><p>Findings - Factors that are statistically significant: test/ country/ device/ service.</p><p>We also need to think about if<strong> Test(color of the button)</strong> will have <strong>cross effects</strong> with other factors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rR1Libntp-Y8QOGuLZZAhQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ul5HrMHsyYVm_sq7J1TN6Q.png" /></figure><p>Finding - <strong>Test(color of the button)</strong> has a strong cross effect with <strong>country</strong>.</p><p>Therefore, we create a model that would capture all the significant single factors and cross-effect factors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p7Hwe5q2ZNSuFrE08odiMA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TGs3TvmApV_95EKDKsxB3w.png" /></figure><h4>Tukey’s Honestly Significant Difference Test</h4><p>An ANOVA test can tell you what variables are significant overall, but it won’t tell you exactly where those differences lie. We can use Tukey Test, a post-hoc test to find out where the differences are?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M8ABDzhcFlQGI23ZWcqdGQ.png" /><figcaption>Test</figcaption></figure><p>diff = 7.222798 is a positive number, meaning comparing 1(green) to 0(gray), 1(green) has a 7.22 higher purchase amount in average.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lkCTqykHTKigzdC92b5nTA.png" /><figcaption>Country</figcaption></figure><h3>Step 4: Result Presentation — Data Visualization</h3><p>From above analysis, we came up with two important points:</p><ol><li>There’s a true purchase amount difference between two groups (Treatment/Control).</li><li>Country and Test have cross effect on the purchase amount.</li></ol><p>Let’s visualize the results.</p><h4>Treatment Group v.s. Control Group</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ppY6lVsvO4-0W_SpH3uzwQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*kHFYmMGnsdm0r7Pxlq5FQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*dx1SfNZ37o6eot0wYekx9A.png" /></figure><p>We see in the time series plot, both groups were very similar in the beginning (why?). A distinct difference started to show after a couple of days. Two possible reasons why:</p><p>1) There is an implementation mistake. The experiment didn’t begin, so the button color did not really change during the first couple of days .<br>2) The type of users in the first couple of days are non-representatives. For example, perhaps the experiment is only effective on PC users, but the users who made purchases in the first couple of days were all using mobile.</p><h4>Country &amp; Test Cross Effect</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ml9ER96addN6LODbaJzeHw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*u_Vh3zf-LeD4f_4ccDJ8Ag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*eYQFnsOvd8Eg4DXB7Psbpw.png" /></figure><p>We noticed a strong cross effect between <strong>test(button color)</strong> and <strong>country</strong> from the ANOVA model earlier. In most of the countries, having a green button resulted in higher purchase amount. However, in Japan particularly, it was way lower. If we want to raise the purchase amount in the Japanese market, we may want to keep the button gray there.</p><h3>Brief Conclusion</h3><p>The analysis in this case study might be considered too simple because it’s only comparing two different colors. However, I obtained a little sense of how the experiment is designed, conducted, and analyzed. This is my first time writing a case study article, and I intend to write more as my study continues. I believe it would help immensely to build my foundation for analyzing future business cases.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0e30c9c31eb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/minyen-hsieh/a-b-testing-e-commerce-buttons-color-experiment-e0e30c9c31eb">eCommerce Button’s Color A/B Test Analysis using R Language</a> was originally published in <a href="https://medium.com/minyen-hsieh">Minyen Hsieh</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[To My 2021 Self]]></title>
            <link>https://medium.com/minyen-hsieh/to-my-2021-self-d3bcf8fe818d?source=rss-a0b8cd2481a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3bcf8fe818d</guid>
            <category><![CDATA[happy-new-year-2021]]></category>
            <category><![CDATA[reflections]]></category>
            <category><![CDATA[goals]]></category>
            <dc:creator><![CDATA[Minyen Hsieh]]></dc:creator>
            <pubDate>Fri, 01 Jan 2021 09:32:31 GMT</pubDate>
            <atom:updated>2022-04-20T22:23:34.309Z</atom:updated>
            <content:encoded><![CDATA[<p>reflection and goals</p><h3>Introduction</h3><p>2020 was an important year for me. I went through some failures, low moments, and savored a little harsh truth of the reality. However, I also learned so many lessons. I grew as an individual and starting to comprehend that <strong>the</strong> <strong>things that didn’t work out, actually worked out for me</strong>. I acknowledge what I’ve accomplished this year and will continue to accomplish in 2021.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sL_MEYKS4rfR_dA49Sy7Xg.jpeg" /></figure><h3>Goals To Achieve In 2021:</h3><p><strong>(1) Academic Learning</strong></p><p>I have only been learning Data Science on my own through online tutorial videos and articles. Now I’m going back to school for a master’s degree, so I will try hard to make my education worth it. There are many subjects I’ve been diligently working on, but SQL in particular has been neglected for a long time. I will start tending to it soon.</p><p><strong>(2) Campus Part-Time Job</strong></p><p>Spring semesters presumably won’t have as many openings as Fall semester, but I will try my best to seek a part-time role. I hope to acquire a decent student position that can help lessen my living expense and won’t negatively influence my studies.</p><p><strong>(3) Medium Blog</strong></p><p>Having my own blog serves to be beneficial in many ways. My writing skills have improved, and it has allowed me to reflect on what I’ve done, where I’m headed and to adjust my steps accordingly. In 2021, my goal is to compose at least one article each month, with emphasis on my school projects.</p><p><strong>(4) Improve My English</strong></p><p>As an international student, language is always a big mountain to climb. I’ve found myself having a hard time holding a conversation with people. I plan to improve my English by listening to the <a href="https://podcasts.apple.com/us/podcast/all-ears-english-podcast/id751574016"><strong><em>All Ears English</em></strong></a> podcast one episode a day. The hosts believe and preach, learning English is for Connection NOT Perfection, and that is exactly what I need.</p><h3>Brief Conclusion</h3><p>This time going back to the U.S. (within 3 weeks) is with the identity of a graduate student. What comes next is fully entering into the workplace, so I can no longer mess around as when I was an undergraduate. I urge myself to constantly work hard over this journey and to believe in myself that I can do anything I put my mind to. Thank you to those who supported me in 2020. I wish everyone well in 2021.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3bcf8fe818d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/minyen-hsieh/to-my-2021-self-d3bcf8fe818d">To My 2021 Self</a> was originally published in <a href="https://medium.com/minyen-hsieh">Minyen Hsieh</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Customer Segmentation with RFM Analysis & K-Means Clustering]]></title>
            <link>https://medium.com/minyen-hsieh/intl-sales-intern-customer-segmentation-with-rfm-analysis-k-means-clustering-89c41b269bfd?source=rss-a0b8cd2481a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/89c41b269bfd</guid>
            <category><![CDATA[rfm-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[k-means]]></category>
            <category><![CDATA[international-sales]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Minyen Hsieh]]></dc:creator>
            <pubDate>Mon, 07 Dec 2020 01:26:44 GMT</pubDate>
            <atom:updated>2023-04-23T03:28:03.810Z</atom:updated>
            <content:encoded><![CDATA[<p>Obtaining a clearer vision on our client base!</p><h3>Introduction</h3><p>Generating more clients is an indispensable way of increasing revenue for the company.; however, research has found that “<strong>increasing customer retention rates by 5% increases profits by 25% to 95%”.</strong> With these statistics in mind, I’d like to obtain a clearer vision on our client base by investigating the sales data, hoping to improve the retention rate in a more systematic way.</p><p>I implemented the classic <strong>RFM model </strong>to capture our clients’ purchase behavior and utilized <strong>K-Means algorithm </strong>to segment our clients into several homogeneous groups. In this article, I will demonstrate my codes and illustrate my thought process. Please understand the result will not show due to company confidentiality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZsRCnhtwQ5KKcqHpPxpqCg.jpeg" /></figure><p><strong>Tools: </strong>Python Jupyter Notebook</p><p><strong>Knowledge Involved: </strong>Python Data Wrangling(pivot_table,) Log Transformation, Data Standardization, RFM Model, K-Means Clustering, Data Visualization with Seaborn&amp;Matplotlib</p><p><a href="https://github.com/minxyen/intl_sales_intern_rfm">minxyen/intl_sales_intern_rfm</a></p><h3>What is RFM Analysis</h3><figure><img alt="source: https://clevertap.com/blog/rfm-analysis/" src="https://cdn-images-1.medium.com/max/1024/1*DhfFHRHZkf9044lkHePvpQ.png" /><figcaption>source: <a href="https://clevertap.com/blog/rfm-analysis/">https://clevertap.com/blog/rfm-analysis/</a></figcaption></figure><p>RFM analysis is a data-driven customer behavior segmentation technique where RFM stands for recency, frequency, and monetary value.</p><blockquote><strong>R</strong>ecency: How recently a customer has made a purchase.</blockquote><blockquote><strong>F</strong>requency: How often a customer makes a purchase.</blockquote><blockquote><strong>M</strong>onetary<strong>:</strong> How much money a customer spends on purchases.</blockquote><p>These are very intuitive and direct measurements of customer behaviors. By analyzing these quantifiable factors, companies are able to gain an extensive understanding of their customers.</p><h3>Step 0: Load Useful Packages</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*flFf7geQkoIhknSAEyAgwQ.png" /><figcaption>Load packages</figcaption></figure><h3>Step 1: Data Preprocessing</h3><pre>The original file consists of approximately 30,000 rows of data.<br>The columns include: [“InvoiceNo”, “Date”, “Company”, “QTY”, “UnitPrice”, “Country”, “ItemNo”, “Total”]</pre><p>I filtered out records with empty value and re-arranged the data into a format which can be processed by the RFM model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*232hg0r2K6zpTto2BYAbrA.png" /><figcaption>Re-arrange the data</figcaption></figure><h3>Step 2: Calculate the Recency, Frequency, and Monetary Values for Each Client.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*20Hi5RT8I77nWWuGnnhaGA.png" /><figcaption>Calculate the R,F,M Value for each client.</figcaption></figure><h3>Step 3: Segment the Clients using K-Means C<strong>lustering</strong></h3><p>The <strong><em>k</em>-means clustering</strong> is an unsupervised machine learning algorithm capable of discovering groups of similar customers based on the smallest variations among customers within each group. Here, I used it to examine the Recency, Frequency, and Monetary value calculated from step 2 and automatically segmented our clients into 4 clusters.</p><p>K-Means is greatly affected by outliers. Our data distribution is found right-skewed so I first performed Log Transformation to bring the data into normal or near-normal distribution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J2krm8NK-mYncq2SbBLXPw.png" /><figcaption>Check the data distribution -&gt; found right-skewed</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8EqTvmFYE1I7yd_IN1oNJg.png" /><figcaption>Log Transformation -&gt; bring data into normal or near-normal distribution.</figcaption></figure><p>It is also important to scale the data when using K-Means. This is because a large variation in scale between features will cause larger features to dominate the distance calculation. In other words, columns with large values will be treated as more important, which is not what we want. Scaling the data will help keep all features equally important.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*84i0sQjBpPY_MJFGh0akXQ.png" /><figcaption>Data Standardization -&gt; bring them onto the same scale.</figcaption></figure><p>Next, I used the <strong>Elbow method</strong> to determine the optimal number of clusters. The Elbow method loops through a range of k = 1~15 (in my case), each time creating a <em>KMeans</em> object with a different number of cluster and returning the <strong>Inertia</strong>(the sum of squared distances of data points to their closest cluster center<strong>)</strong> corresponding to that number of cluster. We can expect to see that for each increasing number of clusters, the Inertia decreases. Then, we can simply select a number of the cluster in which the inertia begins to flatten. Here, I picked k=4.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mo5BCda8e8zdjWhC4z9P4A.png" /><figcaption>Elbow Method -&gt; determine what the appropriate number of clusters should be.</figcaption></figure><p>Finally, I can start creating clusters in our dataset and labeling each client with its cluster result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_AxxyQXNYdsqaQoYKZsVog.png" /><figcaption>Perform K-Means Model and create clusters in our dataset.</figcaption></figure><h3>Step 4: Calculate the Mean Value for Each Cluster.</h3><p>I further conducted a summary analysis for each cluster. Knowing the <strong><em>mean</em></strong> Recency, Frequency, Monetary value of each cluster can assist our sales team in targeting each specific group of clients with communications that are much more relevant for their particular behavior.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tslocQpcCNF0IQU-3rz3qg.png" /><figcaption>Calculate the “mean” of each cluster</figcaption></figure><h3>Brief Conclusion</h3><p>RFM analysis is a straightforward and powerful method for customer segmentation. The whole process is pretty simple and the output can be easily understood and interpreted.</p><p>I eventually visualized the result via Tableau and presented it to the sales team and my boss. They were able to attain a more concise and informative depiction of our client base and receive a sense of direction as to where we can start crafting specific messaging or promotional strategies tailored for each customer group.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89c41b269bfd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/minyen-hsieh/intl-sales-intern-customer-segmentation-with-rfm-analysis-k-means-clustering-89c41b269bfd">Customer Segmentation with RFM Analysis &amp; K-Means Clustering</a> was originally published in <a href="https://medium.com/minyen-hsieh">Minyen Hsieh</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web Scraping Importers Data Collected from Waimaoba]]></title>
            <link>https://medium.com/minyen-hsieh/intl-sales-intern-web-scrapping-importers-data-collected-from-waimaoba-cc9b5d75125?source=rss-a0b8cd2481a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc9b5d75125</guid>
            <category><![CDATA[international-sales]]></category>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Minyen Hsieh]]></dc:creator>
            <pubDate>Sun, 22 Nov 2020 15:42:09 GMT</pubDate>
            <atom:updated>2023-04-10T18:14:07.380Z</atom:updated>
            <content:encoded><![CDATA[<p>Building up my own prospective client email list!</p><h3>Introduction</h3><p>In my last article, I mentioned my way of finding prospective clients using the Web Scrapping Technique of Python when working with the sales department. Here I’d like to give a quick walkthrough of my codes.</p><p><strong>Knowledge involved:</strong> Pipeline Design Pattern, Abstract Class, <em>HTTP Request Method(POST), Python Web scraping with BeautifulSoup, </em>MongoDB</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J9avAp9O2ln7JT5pCl7afQ.jpeg" /></figure><h4><strong>Targeted Site: [Waimaoba] http://buyer.waimaoba.com</strong></h4><p><a href="http://buyer.waimaoba.com/"><strong>Waimaoba</strong></a><strong> </strong>is a Chinese website that contains millions of information collected worldwide who have recently(within 2–3 years) imported products from China. The information contains Company Name, Industry Category, Contact Method(including contact person, email, etc). Obtaining this information, I would be able to conduct email-marketing without having to spend money purchasing email databases from agents.</p><p>Our company produces carbide end mill cutters so my main focus is on companies dealing with <a href="http://xp.waimaoba.com/forum-23-1.htm?orderby=lastpid"><strong>Machinery</strong></a>. This category contains 3,214 pages with 20 companies on each page, accounting for roughly 64,000 pieces of data!</p><p>For the sake of having a cleaner article layout, please find the complete codes on my Github.</p><p><a href="https://github.com/minxyen/waimaoba-crawler">minxyen/waimaoba-crawler</a></p><h3>Step0: Pipeline Design Pattern, Overall Procedure</h3><p>I organized my code in a Pipeline Design Pattern. The Pipeline Design Pattern is basically breaking down a process into smaller individual tasks. Each task completes a step of work(or calculation), then it passes onto the next task(stage). It’s similar to a factory where there are many different machines. One machine does a little processing on the product and passes it down to the next machine, eventually leading to a finished product.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YfkGgCRIoVnycSQVL4TDFA.png" /></figure><p>On the other hand, for better code management, I wrote an Abstract Class for all the steps(Classes) to inherit. Each step(Class) must implement the “<strong>process</strong>” method to execute the code.</p><p><a href="https://github.com/minxyen/waimaoba-crawler/blob/main/waimaoba_crawler/main.py">(main.py)</a> -</p><pre>def main():<br>    start_page = input(&#39;Start From: &#39;)<br>    end_page = input(&#39;End at: &#39;)<br>    inputs = {<br>              &#39;start_page&#39;: start_page,<br>              &#39;end_page&#39;: end_page,<br>             }</pre><pre>    # procedure<br>    steps = [<br>              GetUrls(),<br>              GetCompanyInfo(),<br>              WriteToDB(),<br>            ]</pre><pre>    p = Pipeline(steps)<br>    p.run(inputs)</pre><pre>if __main__ == &#39;__name__&#39;:<br>    main()</pre><h3><strong>Step1: Scrape all the urls from the Machinery category</strong></h3><p>refer to: <a href="https://github.com/minxyen/waimaoba-crawler/blob/main/waimaoba_crawler/pipeline/steps/get_urls.py"><strong>get_urls.py</strong></a></p><p>The page looked pretty simple. I looped through all the pages, scraped all the URLs and appended them into a list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t6hDEAyiVtn6QnPLnAeEZQ.png" /></figure><h3><strong>Step2: Scrape Company Information from each url</strong></h3><p>refer to: <a href="https://github.com/minxyen/waimaoba-crawler/blob/main/waimaoba_crawler/pipeline/steps/get_company_info.py"><strong>get_company_info.py</strong></a></p><p>Here, the page(each url) asks you to input verification code “<strong><em>waimaoba</em></strong>” in order to reveal the Email Address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Psc7yuofPiv3iRsqgpypwg.png" /></figure><p>I did some inspecting on the web page and found that after inputting the verification code, the webpage reloaded but the URL stayed the same. That means, the data wasn’t stored in a different page but rather, the original data got updated. Opened <a href="https://developers.google.com/web/tools/chrome-devtools/?utm_source=devtools">Chrome DevTool</a>, found that after putting in the verification code, the Request Method became <strong>POST</strong> and the Form Data showed “<strong>e_secret_key: waimaoba</strong>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XG1grtZ63tJvtH-lG_aYsQ.png" /></figure><p>Therefore, I needed to send a POST request along with the form data(secret_key) to the server. This is like writing an email to the server and you write “e_secret_key: waimaoba” in the content. Then, the server would reply with the right page content where the email is revealed. After that, I could simply use BeautifulSoup to parse the data.</p><pre>secret_key = {&#39;e_secret_key&#39;: &#39;waimaoba&#39;}</pre><pre>r = requests.post(url, data=secret_key)</pre><pre>soup = BeautifulSoup(r.text, &#39;html.parser&#39;)</pre><h3><strong>Step3: Writing Scraped Data into the Database (MongoDB)</strong></h3><p>refer to: <a href="https://github.com/minxyen/waimaoba-crawler/blob/main/waimaoba_crawler/pipeline/steps/write_to_db.py">write_to_db.py</a></p><p>I chose <strong>MongoDB</strong>, one of the more popular NoSQL databases, to store my data. Python needs a driver to interact with MongoDB and here I used <a href="https://api.mongodb.com/python/current/tutorial.html"><strong>Pymongo</strong></a>.</p><p>Below are the results in MongoDB Compass(the GUI for MongoDB). Note that some of the values are &quot;&quot;(None) because during <strong>Step2,</strong> some pages do not provide that info.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2PI7tjB00TvuWoEhSewlIQ.png" /></figure><h3><strong>Brief Conclusion</strong></h3><p>I have been learning programming independently for a while. It felt exhilarating that I was able to implement what I’ve learned into my work. Web-scrapping is an efficient technique to quickly collect data from webpages. In my case, I utilized it to acquire prospective clients information and building up a large email list for our sales team. In the following article, I will proceed to talk about how I automated the email marketing process by writing an email-sending program.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc9b5d75125" width="1" height="1" alt=""><hr><p><a href="https://medium.com/minyen-hsieh/intl-sales-intern-web-scrapping-importers-data-collected-from-waimaoba-cc9b5d75125">Web Scraping Importers Data Collected from Waimaoba</a> was originally published in <a href="https://medium.com/minyen-hsieh">Minyen Hsieh</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>