Code Monkey home page Code Monkey logo

trend-analysis-using-mysql's Introduction

Banner

Introduction

Web analytics is used to analyze the success criteria of e-commerce sites in order to improve a company's revenue. One of the techniques used is a traffic source analysis. The objective of this analysis is to discover the most important sources of web traffic as well as where these sources are coming from. The findings of this analysis help a company's markerting team make a more informed decision during the bidding process as well as guide the development team to improve designs and usability of their products.

Objective

To analyze the trend of the traffic source on an e-commerce site with the help of guided questions.

Dataset

The dataset used in this analysis was created using Excel and transformed into sql file format using Sqlizer. The dataset consists of 40 rows and 6 columns and imitate e-commerce site sessions in October, 2020. You will see the word "session" used frequently in the analysis. Google Analytics defines the word "session" as follows.

A session is a group of user interactions with your website that take place within a given time frame. For example a single session can contain multiple page views, events, social interactions, and e-commerce transactions.


The image below shows the codes needed to create a table called "website_session" in MySQL.

table_creation

The image below show the table after it has been created.

table

The table below shows the breakdown of all the variables in the table above.

Variable Description
session_id Used as primary key in the table
created_at The date when each sessions occur
user_id The ID used to track the user across multiple sessions
utm_source Urchin tracking module to track where the traffic originated from
utm_campaign Urchin tracking module to monitor specific campaign
device_type The type of devices used to access the site

Questions

1. How does the traffic flow looks like on desktop compared to mobile device?

Answer:

Banner

The CASE and COUNT functions filter and count the total number of user sessions for both devices. Using a simple percentage calculation and rounding method, we can see that 65% of the traffic to the site was accessed through desktops and 35% through mobile phones.

2. What is the weekly trend of sessions for the month of October for both devices?

Answer:

traffic surge

Looking at the weekly data distribution, we can see that there was a spike in session on the mobile by 700%. An analyst should investigate this piece of information further to see what could had caused the increase. A good step forward is to compare the trend with the previous years data. Changes could be made in terms of sales and promotion on the particular day or week to increase future revenue.

3. Which source contributes the most traffic to the site?

Answer:

Banner

The most traffic to the site was contributed by gsearch accessed by desktops with total session volume of 25 which is 63% of the total sessions.

4. Focusing on desktop device and gsearch, how does brand and nonbrand do in terms of session volume?

Answer:

Banner

The session volume of gsearch brand did 4 times better than gsearch nonbrand.

Conclusion

The analysis above are examples of simple calculations performed by an analyst before venturing into more complex queries. A marketer would be interested to know how these trend affect orders. A good conversion rate is when session to order values is high above a certain percentage. Having these information, a marketer can make better decisions in terms of bidding direction whether to increase or reduce bidding on specific campaign. Aside from that, the analysis above can also help developer to improve designs and usability of the site.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.