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


https://www.google-analytics.com/collect?v=1
	&_v=j79                   # Version
	&tid=UA-6493290-1  # Tracking ID / Property ID.
	&cid=1144209745.1575553561 # Client ID (Anonymous id)
	&a=1345355812
	&t=pageview # Pageview hit type.
	&_s=1
        &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.
	&ul=en-us
	&de=UTF-8
	&sd=24-bit
	&sr=1920x1080
	&vp=881x969
	&je=0
	&_utma=67809543.1144209745.1575553561.1575553561.1575553780.2
	&_utmz=67809543.1575114967.13.2.utmcsr%3Dgoogle%7Cutmccn%3D(organic)%7Cutmcmd%3Dorganic%7Cutmctr%3D(not%2520provided)
	&_utmht=1575597168434
	&_u=AACCAEAB~
	&jid=
	&gjid=
	&_gid=1552872619.1575553608
	&z=808338420
        &dimension5=author

where:

More … see Ga Pageview Doc

4.2 - Segment

Web Analytics - Segment.io

The call:


analytics.page({
  path: '/',
  referrer: 'http://localhost:8080/',
  search: '',
  title: 'WebComponent Test',
  url: 'http://localhost:8080/'
});

The created json:


{
  "anonymousId": "6603c084-944a-40bf-a493-e3a21765d1a4",
  "context": {
    "ip": "143.176.206.82",
    "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
Statistics
Data Science
Linear Algebra Mathematics
Trigonometry

Powered by ComboStrap