TagSpy

page_view

Enhanced measurementweb

each time the page loads or the browser history state is changed by the active site This event is collected automatically. You cannot turn off collection. An advanced setting on this option controls whether the event is sent based on browser-history events. This measurement option listens for pushState, popState, and replaceState.

Platforms
web
When it fires
Collected automatically; no code needed.
Official docs

Parameters (3)

ParameterTypeRequiredDescriptionExample
page_location--Page URL-
page_referrer--Previous page URL-
engagement_time_msec--The additional engagement time (ms) since the last user_engagement event-

Example

gtag.js
gtag('event', 'page_view', {
  page_location: '...',
  page_referrer: '...',
  engagement_time_msec: '...',
});
GTM dataLayer
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  event: 'page_view',
  page_location: '...',
  page_referrer: '...',
  engagement_time_msec: '...',
});

Also see