Unit 3: Web Metrics & Analytics
Web Metrics & Analytics
Web metrics and analytics help businesses and website owners understand user behavior, optimize performance, and make data-driven decisions. Below are some common web metrics and analytics concepts explained in detail.
Hits
A hit is a request made to a web server for a file. Each element of a webpage (e.g., images, videos, CSS files, scripts) generates a separate hit. Example: A webpage with 10 images, 2 stylesheets, and 1 script will generate 13 hits in a single visit. Hits do not accurately measure website traffic, as they include requests for all resources, not just page views.
Page Views
A page view is counted every time a user loads or reloads a webpage. Example: If a user visits Page A, then Page B, then refreshes Page B, the total page views = 3. Used to measure how often a webpage is accessed, indicating content popularity.
Visits (Sessions)
A visit (or session) is a period of activity by a user on a website. A session starts when a user lands on a website and ends when they leave or become inactive for a set time (usually 30 minutes of inactivity). Example: If a user browses 5 pages within 10 minutes, it counts as 1 session. Helps in tracking user engagement and overall traffic.
Unique Page Views
A unique page view counts the number of users who visit a specific page at least once during a session. Unlike page views, multiple visits to the same page within a session are counted as 1 unique page view. Example: If a user visits Page A three times in a session, total page views = 3, but unique page views =
Used to analyze distinct visits per page
Bounce
A bounce occurs when a user visits a page and leaves without interacting further (e.g., clicking a link, visiting another page). Example: A user lands on a blog post and leaves without reading another post or clicking a CTA. Indicates whether users find the landing page relevant.
Bounce Rate & Its Improvement
Bounce rate is the percentage of visitors who leave after viewing only one page.
Formula: Bounce Rate=(Single-page visits/Total visits)×100
Example: If 100 users visit a webpage and 70 leave without interaction, bounce rate = 70%.
Ways to Improve Bounce Rate:
✅ Improve page load speed.
✅ Provide clear navigation and internal linking.
✅ Use engaging content with clear CTAs.
✅ Optimize for mobile responsiveness.
Average Time on Site
This metric tracks the average duration users spend on a website.
Formula: Avg. Time on Site = Total time spent by all visitors/Total visits
A higher average time suggests engaging content, while a lower time may indicate poor usability or irrelevant content.
Real-Time Report
- A real-time report in analytics tools like Google Analytics provides live data on website activity.
- Shows active users, pages they are viewing, traffic sources, and geographic locations.
- Useful for monitoring campaign performance and tracking traffic spikes instantly.
Traffic Source Report
This report shows how visitors find a website. Traffic sources include:
- Organic Search – Users come via search engines (Google, Bing).
- Direct Traffic – Users enter the URL directly in the browser.
- Referral Traffic – Users arrive via links from other websites.
- Social Media – Visitors from platforms like Facebook, Instagram, LinkedIn.
- Paid Search – Visitors from Google Ads or PPC campaigns.
Understanding traffic sources helps in refining marketing strategies.
Custom Campaigns
Custom campaigns track marketing efforts using UTM (Urchin Tracking Module) parameters. Example: A UTM-tagged URL in an email campaign:
https://example.com?utm_source=email&utm_medium=newsletter&utm_campaign=summer_sale
Content Report
- A content report provides insights into how individual pages perform.
- Metrics include page views, bounce rate, average time on page, and exit rate.
- Helps identify high-performing content and areas needing improvement.
Google Analytics
Key Features:
In Short, Understanding these web metrics helps businesses analyze performance, improve user experience, and enhance digital marketing strategies. Google Analytics remains a powerful tool for measuring and optimizing website traffic.
Key Performance Indicator (KPI)
Need for KPIs
KPIs are essential for:
Example: A retail company tracks sales revenue as a KPI to assess the effectiveness of its marketing and sales strategies.
Characteristics of KPIs
A well-defined KPI should follow the SMART criteria:
Perspectives of KPIs
A. Financial Perspective
Focuses on financial performance and profitability.
✅ Example KPIs:
- Revenue Growth Rate – Measures increase in sales over time.
- Gross Profit Margin – Assesses overall profitability.
- Return on Investment (ROI) – Evaluates profitability of investments.
B. Customer Perspective
✅ Example KPIs:
- Net Promoter Score (NPS) – Tracks customer satisfaction.
- Customer Retention Rate – Measures repeat customers.
- Customer Acquisition Cost (CAC) – Evaluates cost of acquiring a new customer.
C. Internal Business Process Perspective
✅ Example KPIs:
- Order Fulfillment Time – Measures how quickly orders are processed.
- Product Defect Rate – Tracks product quality.
- Inventory Turnover – Assesses stock management efficiency.
D. Learning & Growth Perspective
✅ Example KPIs:
- Employee Productivity – Measures output per employee.
- Training Completion Rate – Tracks employee skill development.
- Innovation Rate – Assesses new product development.
Uses of KPIs
KPIs are used across industries and departments for various purposes:
Example: A SaaS company uses Customer Lifetime Value (CLV) as a KPI to measure the long-term revenue a customer brings to the company.
Graphs and Matrices in Networks
Basic Measures for Individuals and Networks
A. Measures for Individuals (Nodes)
These metrics describe the importance and influence of a node in a network.
B. Measures for Networks (Global Properties)
These metrics describe the overall structure of a network.
Random Graphs & Network Evolution
A. Random Graphs
- A random graph is a network where edges are formed randomly between nodes, following probability rules.
- Introduced by Erdős and Rényi in 1959.
- Used to study emergent properties of large networks.
B. Network Evolution
Networks evolve over time due to growth and preferential attachment.
Social Context
A. Affiliation Networks
- These networks describe relationships between individuals and groups.
- Represented as bipartite graphs (two types of nodes: people and groups).
- Used in organizational structures, academic collaborations, and social circles.
B. Identity in Networks
- Identity influences how individuals interact and form relationships.
- Defined by demographics, interests, or professional background.
- Homophily: Tendency to form connections with similar people.
- Heterophily: Interaction between diverse individuals.
In Short,
- Graphs and matrices provide a framework for analyzing individual behaviors and network structures.
- Random graphs model probabilistic connections, while network evolution explains growth patterns.
- Affiliation and identity impact social interactions and community formation.
Web Analytics Tools
A/B Testing
How It Works:
- Two Variants – Create Version A (control) and Version B (variant) with one key difference (e.g., button color, headline, CTA).
- Traffic Split – Users are randomly shown either version.
- Performance Measurement – Track key metrics like click-through rate (CTR), conversion rate, bounce rate to identify the better version.
Benefits of A/B Testing:
Online Surveys
How It Works:
- Questionnaire Design – Includes multiple-choice, rating scales, and open-ended questions.
- User Targeting – Sent via email, pop-ups, or embedded on websites.
- Data Analysis – Responses are analyzed to improve customer experience.
Benefits of Online Surveys
Web Crawling
How It Works
- Crawlers Start from a Seed URL – A search engine bot (e.g., Googlebot) begins indexing from known websites.
- Following Links – Crawlers discover new pages by following internal and external links.
- Content Extraction – HTML, metadata, and keywords are stored in a database.
Benefits of Web Crawling:
Indexing
How It Works:
- Crawled Data Processing – Search engines analyze keywords, metadata, and page relevance.
- Database Storage – Relevant pages are added to an index for future search queries.
- Search Query Matching – When a user searches, indexed pages are ranked based on relevance and SEO factors.
Benefits of Indexing
Conclusion
- A/B testing, online surveys, web crawling, and indexing play a crucial role in web analytics:
- A/B testing optimizes conversions.
- Surveys gather user feedback.
- Web crawling collects and analyzes data.
- Indexing organizes information for search engines.
Natural Language Processing (NLP)
Text Preprocessing Techniques
Before analyzing micro-text, preprocessing is necessary to clean and standardize the data.
Named Entity Recognition (NER)
- Brand: Apple
- Product: iPhone
- Location: NY
Sentiment Analysis
Hashtag & Keyword Extraction
- Hashtag: #AIConference2025
- Location: SF
Part-of-Speech (POS) Tagging
- "Amazing" → Adjective
- "product" → Noun
- "Works" → Verb