Module 2: Web Metrics, Data Collection
and Analytics Tools
Subject: Web Analytics and Information Retrieval
1. Introduction to Web Analytics
Definition
Web Analytics is the process of collecting, measuring, analyzing, and reporting website data
to understand user behavior and improve website performance.
Objectives of Web Analytics
Understand visitor behavior
Improve user experience
Increase website traffic
Improve conversion rates
Measure marketing campaign effectiveness
Support business decision-making
Example
An online shopping website uses web analytics to determine:
Which products are viewed most frequently.
How users navigate through the website.
Why users abandon their shopping carts.
2. Web Metrics
What are Web Metrics?
Web metrics are quantitative measurements used to evaluate website performance and user
engagement.
2.1 Page Views
Definition
A Page View occurs whenever a webpage is loaded or reloaded by a visitor.
Formula
Page Views = Total Number of Pages Viewed
Example
User Pages Visited
User A Home, Products, Contact
User B Home, About
User C Home
Total Page Views = 3 + 2 + 1 = 6
Importance
Indicates website popularity.
Measures content consumption.
2.2 Bounce Rate
Definition
Bounce Rate is the percentage of visitors who leave the website after viewing only one page.
Formula
Bounce Rate=Single Page Visits/Total Visits*100
Example
Total Visitors = 100
Visitors who left after one page = 40
Bounce Rate=40/100×100=40%
Interpretation
Bounce Rate Meaning
Below 40% Excellent
40%-60% Average
Bounce Rate Meaning
Above 70% Poor
Causes of High Bounce Rate
Slow website
Poor content
Misleading advertisements
Difficult navigation
2.3 Conversion Rate
Definition
Conversion Rate measures how many visitors complete a desired action.
Examples:
Purchasing a product
Filling out a form
Downloading a file
Subscribing to a newsletter
Formula
Conversion Rate=Conversions/Total Visitors
Example
Website Visitors = 1000
Purchases = 50
Conversion Rate=50/1000×100=5%
Importance
Measures business success.
Evaluates marketing campaigns.
2.4 Dwell Time
Definition
Dwell Time is the amount of time a user spends on a webpage before returning to the search
results.
Example
User Action Time
Clicks webpage from Google 10:00 AM
Returns to Google 10:05 AM
Dwell Time = 5 Minutes
Interpretation
Dwell Time Meaning
High Relevant Content
Low Poor Content or User Dissatisfaction
Importance
Indicates content quality.
Helps improve SEO rankings.
Comparison of Major Web Metrics
Metric Measures
Page Views Popularity
Bounce Rate Visitor Engagement
Conversion Rate Business Success
Dwell Time Content Relevance
3. Data Collection Methods
Web analytics relies on collecting user interaction data.
3.1 Server Logs
Definition
Server Logs are files automatically generated by web servers that record user requests.
Information Stored
IP Address
Date and Time
Requested URL
Browser Type
Operating System
Example Log Entry
[Link] - - [10/May/2026:10:15:30]
"GET /[Link] HTTP/1.1"
Advantages
Automatically generated
No client-side script required
Disadvantages
Cannot track user behavior accurately
Difficult to analyze large logs
3.2 Cookies
Definition
Cookies are small text files stored in the user's browser.
Uses
Remember login information
Store user preferences
Track returning visitors
Example
When a user logs into Amazon:
Cookie:
UserID = 12345
Next time the user visits:
Website recognizes the user.
Login remains active.
Types
Session Cookies
Deleted after browser closes.
Persistent Cookies
Remain stored for a specified period.
3.3 JavaScript Tags
Definition
JavaScript tags are snippets of code embedded in webpages to collect visitor data.
Example
<script>
[Link]("Tracking User Activity");
</script>
Information Collected
Button clicks
Scroll activity
Page views
Form submissions
Advantages
Real-time tracking
Detailed user behavior analysis
Disadvantages
Blocked by some browsers
Requires JavaScript enabled
Data Collection Architecture
Data collection methods comparison
Relative capability of common web analytics data collection techniques.
0255075100Server LogsCookiesJavaScript Tags
(Illustrative comparison for classroom understanding.)
4. Web Analytics Tools
4.1 Google Analytics
Definition
Google Analytics is the most widely used web analytics platform.
Features
Real-time monitoring
User demographics
Traffic source analysis
Conversion tracking
Campaign analysis
Example
Google Analytics can answer:
How many visitors came today?
Which country generated the most traffic?
Which pages are most popular?
Benefits
Free version available
Easy integration
4.2 Adobe Analytics
Definition
Adobe Analytics is an enterprise-level analytics platform.
Features
Advanced segmentation
Predictive analytics
Customer journey analysis
AI-powered insights
Suitable For
Large organizations
E-commerce platforms
Marketing agencies
Example
An airline company analyzes:
Booking behavior
Customer journey
Ticket purchase patterns
4.3 Matomo
Definition
Matomo is an open-source web analytics platform.
Features
Full data ownership
Privacy-focused
GDPR compliant
Self-hosted option
Example
Universities and government organizations often use Matomo when data privacy is important.
Comparison of Analytics Tools
Feature Google Analytics Adobe Analytics Matomo
Cost Free/Paid Paid Free/Open Source
Ease of Use High Medium Medium
Data Ownership Google Organization Organization
Privacy Control Medium High Very High
Suitable For Small-Medium Sites Enterprises Privacy-focused Organizations
5. Data Visualization and Dashboard
Reporting
Definition
Data Visualization is the graphical representation of web analytics data.
Common Visualizations
Bar Charts
Pie Charts
Line Graphs
Dashboards
Heat Maps
Example Dashboard
Metric Value
Visitors 15,000
Page Views 50,000
Bounce Rate 35%
Conversion Rate 4.5%
Avg. Dwell Time 3.8 Minutes
Benefits
Quick understanding
Better decision making
Easy reporting
6. Applications of Web Analytics
6.1 User Tracking
Purpose
Understand visitor behavior.
Example
Tracking:
Pages visited
Time spent
Click patterns
Benefits
Improves website design
Personalizes user experience
6.2 Campaign Analysis
Purpose
Evaluate marketing campaign effectiveness.
Example
Campaign A:
10,000 visitors
500 purchases
Campaign B:
8,000 visitors
600 purchases
Campaign B performs better because of a higher conversion rate.
6.3 Performance Monitoring
Purpose
Monitor website health and performance.
Metrics Used
Page load time
Bounce rate
Error rates
User engagement
Example
If page load time increases from 2 seconds to 8 seconds:
Bounce rate may increase.
User satisfaction may decrease.
Real-Life Case Study
E-Commerce Website Analysis
Monthly Data:
Metric Value
Visitors 20,000
Page Views 75,000
Bounce Rate 30%
Conversion Rate 5%
Avg. Dwell Time 4 Minutes
Interpretation
High page views indicate user interest.
Low bounce rate indicates good engagement.
High dwell time suggests useful content.
Good conversion rate indicates successful sales strategy.
Important University Examination
Questions
Short Questions (2-3 Marks)
1. Define Web Analytics.
2. What is Bounce Rate?
3. Define Dwell Time.
4. What are Cookies?
5. List any two web analytics tools.
6. What is Conversion Rate?
7. What are Server Logs?
8. State the purpose of JavaScript Tags.
Long Questions (5-10 Marks)
1. Explain major web metrics with suitable examples.
2. Compare Server Logs, Cookies and JavaScript Tags.
3. Explain Google Analytics, Adobe Analytics and Matomo.
4. Discuss the role of data visualization in web analytics.
5. Explain applications of web analytics in campaign analysis and user tracking.
6. Describe the process of web data collection with suitable examples.
Key Takeaways
Page Views measure website popularity.
Bounce Rate indicates visitor engagement.
Conversion Rate measures business success.
Dwell Time reflects content relevance.
Server Logs, Cookies, and JavaScript Tags are major data collection methods.
Google Analytics, Adobe Analytics, and Matomo are popular analytics tools.
Dashboards and visualizations help interpret web data efficiently.
Web analytics supports user tracking, campaign optimization, and performance
monitoring.
Short Questions (2–3 Marks)
1. Define Web Analytics.
Answer:
Web Analytics is the process of collecting, measuring, analyzing, and reporting website data
to understand user behavior and improve website performance. It helps organizations make
data-driven decisions to enhance user experience and achieve business goals.
2. What is Bounce Rate?
Answer:
Bounce Rate is the percentage of visitors who leave a website after viewing only one page
without performing any further interaction.
Formula:
Bounce Rate=Single Page VisitsTotal Visits×100\text{Bounce Rate} = \frac{\text{Single
Page Visits}}{\text{Total Visits}} \times 100Bounce Rate=Total VisitsSingle Page Visits
×100
3. Define Dwell Time.
Answer:
Dwell Time is the amount of time a user spends on a webpage after clicking a search result
and before returning to the search engine results page. It indicates the relevance and
usefulness of the webpage content.
4. What are Cookies?
Answer:
Cookies are small text files stored on a user's browser by websites to remember user
information, preferences, and browsing activities. They help in user authentication, session
management, and visitor tracking.
5. List any two web analytics tools.
Answer:
1. Google Analytics
2. Adobe Analytics
(Other examples: Matomo, Mixpanel)
6. What is Conversion Rate?
Answer:
Conversion Rate is the percentage of website visitors who complete a desired action such as
making a purchase, filling out a form, or subscribing to a newsletter.
Formula:
Conversion Rate=Number of ConversionsTotal Visitors×100\text{Conversion Rate} = \frac{\
text{Number of Conversions}}{\text{Total Visitors}} \times
100Conversion Rate=Total VisitorsNumber of Conversions×100
7. What are Server Logs?
Answer:
Server Logs are files automatically maintained by web servers that record details about
requests made to a website, such as IP address, date and time, requested pages, browser type,
and operating system.
8. State the purpose of JavaScript Tags.
Answer:
JavaScript Tags are used to collect detailed information about user interactions on a website,
such as page views, clicks, scrolling behavior, and form submissions. They enable real-time
tracking and analytics.
Long Questions (5–10 Marks)
1. Explain Major Web Metrics with Suitable Examples.
Answer:
Web metrics are measurements used to evaluate website performance and user behavior.
a) Page Views
A page view occurs whenever a webpage is loaded or reloaded.
Example:
A visitor views Home, Products, and Contact pages.
Total Page Views = 3
b) Bounce Rate
The percentage of visitors who leave the website after viewing only one page.
Example:
Total Visitors = 100
Single-page Visits = 40
BounceRate=40100×100=40%Bounce Rate = \frac{40}{100}\times100 =
40\%BounceRate=10040×100=40%
c) Conversion Rate
Measures the percentage of visitors who complete a desired action.
Example:
Visitors = 1000
Purchases = 50
ConversionRate=501000×100=5%Conversion Rate = \frac{50}{1000}\times100 =
5\%ConversionRate=100050×100=5%
d) Dwell Time
The amount of time a visitor spends on a webpage before returning to search results.
Example:
User clicks a webpage at 10:00 AM and returns at 10:05 AM.
Dwell Time = 5 minutes
Conclusion
These metrics help organizations understand website popularity, engagement, content quality,
and business performance.
2. Compare Server Logs, Cookies and JavaScript Tags.
Answer:
Feature Server Logs Cookies JavaScript Tags
Small files stored in Scripts used for
Definition Records server requests
browser tracking
Location Server-side Client-side Client-side
IP address, URL, User preferences, Clicks, scrolls, page
Data Collected
browser session data views
Real-Time
Limited Moderate High
Tracking
User Identification Difficult Easy Easy
Storage Web server User browser Analytics server
Detailed behavioral
Advantages Automatically generated Remembers users
tracking
Limited user behavior Requires JavaScript
Disadvantages Can be deleted by users
analysis enabled
Conclusion
All three methods are used together to collect comprehensive website analytics data.
3. Explain Google Analytics, Adobe Analytics and
Matomo.
Answer:
Google Analytics
Google Analytics is a web analytics service that tracks website traffic and user behavior.
Features:
Real-time monitoring
Traffic source analysis
Conversion tracking
Audience reports
Example:
A business tracks daily website visitors and sales conversions.
Adobe Analytics
Adobe Analytics is an enterprise-level analytics platform providing advanced reporting and
predictive insights.
Features:
Customer journey analysis
Advanced segmentation
Predictive analytics
AI-powered reports
Example:
An airline analyzes customer booking behavior across multiple devices.
Matomo
Matomo is an open-source web analytics platform that offers complete control over data.
Features:
Self-hosted deployment
Data privacy
GDPR compliance
Customizable reports
Example:
Government organizations use Matomo to maintain data ownership and privacy.
Conclusion
Google Analytics is suitable for most websites, Adobe Analytics is ideal for large enterprises,
and Matomo is preferred for privacy-focused organizations.
4. Discuss the Role of Data Visualization in Web Analytics.
Answer:
Data Visualization is the graphical representation of web analytics data using charts, graphs,
dashboards, and reports.
Importance:
1. Simplifies complex data.
2. Helps identify trends and patterns.
3. Supports quick decision-making.
4. Improves communication of insights.
5. Enables real-time monitoring.
Common Visualization Methods:
Bar Charts
Pie Charts
Line Graphs
Dashboards
Heat Maps
Example:
A dashboard displays:
Visitors: 10,000
Bounce Rate: 35%
Conversion Rate: 4%
Page Views: 50,000
Managers can instantly evaluate website performance.
Conclusion:
Data visualization transforms raw data into meaningful insights, making analytics easier to
understand and act upon.
5. Explain Applications of Web Analytics in Campaign
Analysis and User Tracking.
Answer:
A) User Tracking
User tracking involves monitoring visitor behavior on a website.
Information Tracked:
Pages visited
Time spent
Click patterns
Navigation paths
Benefits:
Improves website design
Enhances user experience
Supports personalization
Example:
An e-commerce website tracks products viewed by users and recommends similar products.
B) Campaign Analysis
Campaign analysis measures the effectiveness of marketing campaigns.
Metrics Used:
Traffic generated
Conversion rate
Cost per acquisition
Return on investment (ROI)
Example:
Campaign Visitors Purchases
A 10,000 500
B 8,000 600
Campaign B is more effective because it has a higher conversion rate.
Conclusion:
Web analytics helps organizations optimize marketing efforts and improve customer
engagement.
6. Describe the Process of Web Data Collection with
Suitable Examples.
Answer:
Web data collection is the process of gathering information about website visitors and their
activities.
Step 1: User Visits Website
A visitor opens a webpage.
Step 2: Data Capture
Information is collected through:
Server Logs
Cookies
JavaScript Tags
Step 3: Data Storage
Collected data is stored in databases or analytics platforms.
Step 4: Data Processing
Analytics tools process and organize the collected data.
Step 5: Report Generation
Reports and dashboards are generated for analysis.
Example:
A user visits an online shopping website:
Server Log records the page request.
Cookie stores user session information.
JavaScript Tag records clicks and scrolling activity.
Google Analytics generates reports showing user behavior.
Data Collection Flow:
User Visit
↓
Data Collection
(Server Logs/Cookies/JS Tags)
↓
Data Storage
↓
Data Processing
↓
Analytics Reports & Dashboards
Conclusion:
Web data collection enables organizations to understand visitor behavior, improve website
performance, and make informed business decisions.
Tools:
1. Google Analytics (GA4)
Official Training (Best for Beginners)
Google Analytics Academy (Skillshop)
This free training covers:
GA4 fundamentals
Setting up properties
Tracking users and events
Creating reports and dashboards
Measuring conversions and campaigns
Official Beginner Video
Google Analytics Beginner Course (YouTube)
2. Adobe Analytics
Official Documentation
Adobe Analytics Documentation
Topics covered:
Analysis Workspace
Dashboards and reports
Segmentation
Customer journey analysis
Implementation and administration
Beginner Guide
Adobe Analytics Getting Started Guide
Hands-on Learning Session
Adobe Analytics: Getting Started (Analysis Workspace)
3. Matomo Analytics
Official Getting Started Guide
Matomo Getting Started Guide
Topics include:
Installing Matomo
Tracking visitors
Reports and dashboards
Campaign tracking
Goals and conversions
Complete Knowledge Base
Matomo Guides & Documentation
Installation Tutorial
Installing Matomo Analytics
Suggested Practical Sessions for Students
Practical No. Activity
1 Create a Google Analytics account and explore GA4 dashboard
2 Analyze Page Views, Users, Sessions, and Bounce Rate
3 Create a custom report in GA4
4 Track conversion events and goals
Practical No. Activity
5 Compare Google Analytics and Matomo dashboards
6 Create a campaign using UTM parameters and analyze traffic
7 Build a web analytics dashboard using collected data
8 Generate performance reports and interpret metrics
Recommended Learning Sequence for
Students
1. Google Analytics (GA4) – easiest and industry standard.
2. Matomo – understand privacy-focused analytics.
3. Adobe Analytics – enterprise-level analytics platform.