Week 1: Web Analytics
Jan-2025
Web (2000) vs Web (2025); Generated by DALL-E-3
Question
Think about the last time you browsed online. Did you notice ads related to your recent searches? Ever wonder how that happens?
Scenario
Further Thinking
<script type="text/javascript" src="quarto-preview.js"></script>
<script>window.define = window.backupDefine; window.backupDefine = undefined;</script>
<script type="text/javascript">
const options = {
origin: "",
search: "",
inputFile: "D:\workspace\Web-SNA\week1\lecture\week1.qmd",
isPresentation: true
}
document.addEventListener("DOMContentLoaded", function () {
window.QuartoPreview.init(options);
});
</script>
<!DOCTYPE html>
<html lang="en"><head>
<script src="week1_files/libs/clipboard/clipboard.min.js"></script>
<script src="week1_files/libs/quarto-html/tabby.min.js"></script>
<script src="week1_files/libs/quarto-html/popper.min.js"></script>
<script src="week1_files/libs/quarto-html/tippy.umd.min.js"></script>
<link href="week1_files/libs/quarto-html/tippy.css" rel="stylesheet">
<link href="week1_files/libs/quarto-html/light-border.css" rel="stylesheet">
<link href="week1_files/libs/quarto-html/quarto-html.min.css" rel="stylesheet" data-mode="light">
<link href="week1_files/libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles"><meta charset="utf-8">
<meta name="generator" content="quarto-1.5.57">
<meta name="author" content="Dr. Zexun Chen">
<title>Web and Social Network Analytics</title>
<article>
, <section>
, <footer>
).HTML Component | Tag Syntax | Description |
---|---|---|
Hyperlink | <a> XXX </a> |
Used to create links to other pages. Example: <a href="www.ed.ac.uk">Link to UoE</a> |
Paragraph | <p> XXX </p> |
Defines a paragraph of text. |
Layout Elements | <div> , <span> , <nav> , <header> |
Defines sections of the page layout. |
Headers | <h1> , <h2> , etc. |
Used for headings of various levels. Example: <h1>Media and Web Analytics</h1> , <h2>Chapter 1: Web analytics</h2> |
Image | <img src="image.jpg" alt="description"> |
Embeds an image. Example: <img src="Johannes.jpg" alt="Johannes’ face" width="100" height="200"> . Note: no end tag required. |
Table | <tr> , <th> , <td> |
Used to create tables. Example: <tr> for rows, <th> for headers, and <td> for standard cells. |
<div>
.<style> .blueHeader {color: blue;} </style>
<h1 class="blueHeader">Header 1</h1>
<protocol>://<machine>/<file>
index.html
.index.html
.<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-78722-17', 'auto');
ga('send', 'pageview');
</script>
What is ClickStream Data?
Term | Definition |
---|---|
Hit | Any request for a file from the web server. |
Page View | A request to load a single page of a website. |
Session | A group of user interactions with your website that take place within a given time frame. |
Bounce Rate | The percentage of visitors who navigate away after viewing only one page. |
Conversion Rate | The percentage of visitors who take a desired action (e.g., purchase, sign-up). |
Building Block | Definition |
---|---|
Visitor | Uniquely identified individual causing hits (requests for files, pages, etc.). |
Visitor Types | - Unique Visitor: First-time user. - Repeat Visitor: Returns within a given time frame. - Returning Visitor: Previously visited. - New Visitor: First visit. |
Metrics | Single page visit; Bounce rate (single page); Exit rate (single page); page time viewd/duration; Average page depth; Click path: the route through the website |
Important
\[ \text{Bounce Rate (single page)} = \frac{\text{Number of Single Page Sessions}}{\text{Total Number of Sessions}} \]
\[ \text{Exit Rate (single page)} = \frac{\text{Sessions Ending on Page}}{\text{Total Visits containing that Page}} \]
\[ \text{Average Page Depth} = \frac{\text{Total Number of Pages Viewed}}{\text{Total Visits}} \]
Visitor 1 | Visitor 2 | Visitor 3 | Visitor 4 | Visitor 5 |
---|---|---|---|---|
Home | Home | Home | Home | Products |
Products | About | Products | ||
Product 1 | Products | Basket | ||
Basket | Home | Checkout | ||
Checkout | ||||
Purchase confirmed |
Visitor 1 | Visitor 2 | Visitor 3 | Visitor 4 | Visitor 5 |
---|---|---|---|---|
Home | Home | Home | Home | Products |
Products | About | Products | ||
Product 1 | Products | Basket | ||
Basket | Home | Checkout | ||
Checkout | ||||
Purchase confirmed |
Example: My Personal Website
Component | Description |
---|---|
Entry Point | Where users begin their journey (e.g., landing page). |
Intermediate Steps | Key actions users take towards the goal (e.g., adding items to cart, filling out forms). |
Conversion | The final goal or action (e.g., completing a purchase, signing up). |
Drop-Off Points | Stages where users exit without converting. |
Stage | Description |
---|---|
Awareness | Customer becomes aware of a need and your brand. |
Consideration | Customer researches potential solutions and evaluates your offerings. |
Decision | Customer decides to purchase your product or service. |
Retention | Post-purchase experiences and customer loyalty. |
Advocacy | Satisfied customers recommend your brand to others. |
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-2PMCK59SQC"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-2PMCK59SQC');
</script>
Install manually