Web Analytics - Page views (PV)

1 - About

Page views measurement allows to measure the number of views for a particular web page.

Page Views is a event send by a tracker that counts:

  • On a server side rendering system, every page load
  • On a single page application, every URL modification.
  • On a infinite scroll page (a webpage that continuously loads new posts as the user scrolls down), you may define a page view as a multiple of items viewed.

PageViews that are not the loading of a page are also referred as virtual pageviews.

3 - Other definition

3.1 - Visible Page

To see if the page was viewed by switching from one tab to another, you can use the Page Visibility API (Can I Use pagevisibility)

3.2 - Monthly Page View (MPV)

MPV is a metric for website size.

Example of category:

  • Under 250k
  • 250k - 500k
  • 500k - 1 million
  • 1 million - 5 million
  • 5 million - 10 million
  • 10 million - 20 million
  • Over 20 million

4 - Request Example

4.1 - Google Analytics

	&_v=j79                   # Version
	&tid=UA-6493290-1  # Tracking ID / Property ID.
	&cid=1144209745.1575553561 # Client ID (Anonymous id)
	&t=pageview # Pageview hit type.
        &dh=mydemo.com   # Document hostname.
        # All events can have a document path (&dp) or document location (&dl).
        &dp=/home        # Page (document path)
        &dl=https%3A%2F%2Fgerardnico.com%2Fmarketing%2Fanalytics%2Ftracker # document location
        &dt=Tracker%20%5BGerardnico%20-%20The%20Data%20Blog%5D  # Title.


More … see Ga Pageview Doc

4.2 - Segment

Web Analytics - Segment.io

The call:

  path: '/',
  referrer: 'http://localhost:8080/',
  search: '',
  title: 'WebComponent Test',
  url: 'http://localhost:8080/'

The created json:

  "anonymousId": "6603c084-944a-40bf-a493-e3a21765d1a4",
  "context": {
    "ip": "",
    "library": {
      "name": "analytics.js",
      "version": "3.10.1"
    "page": {
      "path": "/",
      "referrer": "http://localhost:8080/",
      "search": "",
      "title": "WebComponent Test",
      "url": "http://localhost:8080/"
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36"
  "integrations": {},
  "messageId": "ajs-f51a947ad152777a76f5060c41a6988c",
  "originalTimestamp": "2020-01-12T09:02:06.178Z",
  "properties": {
    "path": "/",
    "referrer": "http://localhost:8080/",
    "search": "",
    "title": "WebComponent Test",
    "url": "http://localhost:8080/"
  "receivedAt": "2020-01-12T09:02:07.496Z",
  "sentAt": "2020-01-12T09:02:06.182Z",
  "timestamp": "2020-01-12T09:02:07.492Z",
  "type": "page",
  "userId": null

5 - Table example

5.1 - Segment

Web Analytics - Segment.io

Column Description
Anonymous_id The anonymous ID of the user
user_id The unique ID of the user
context_<key> Non-user-related context fields sent with each page or screen call - Google Analytics - Browsing Context (URL, screen, ...)
id The unique ID of the page or screen call itself
received_at When the page or screen call was received
sent_at When the page or screen call was triggered by the user
<property> Each property of your pages or screens is created as it’s own column, and the column type is automatically inferred from your data.
For example, you might have columns like referrer and title.

6 - Derived Data Structure

From a page view event, you can construct:

7 - Documentation

Data Science
Data Analysis
Data Science
Linear Algebra Mathematics

Powered by ComboStrap