{"id":21323,"date":"2020-01-28T14:41:36","date_gmt":"2020-01-28T14:41:36","guid":{"rendered":"https:\/\/www.arimetrics.com\/glosario-digital\/virtual-page"},"modified":"2026-09-15T09:02:01","modified_gmt":"2026-09-15T09:02:01","slug":"virtual-page","status":"publish","type":"encyclopedia","link":"https:\/\/www.arimetrics.com\/en\/digital-glossary\/virtual-page","title":{"rendered":"Virtual Page"},"content":{"rendered":"<p><img decoding=\"async\" class=\"boxpad alignright wp-image-23076 size-full\" src=\"https:\/\/www.arimetrics.com\/wp-content\/uploads\/2021\/11\/virtual-page.jpg\" alt=\"Virtual Page\" width=\"300\" height=\"300\" style=\"margin-top:0;\" srcset=\"https:\/\/www.arimetrics.com\/wp-content\/uploads\/2021\/11\/virtual-page.jpg 300w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2021\/11\/virtual-page-150x150.jpg 150w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><strong>Definition:<\/strong><\/p>\n<p>A <strong>virtual page<\/strong>, or virtual pageview, is a measurement that records a page-view event even though the browser has not loaded a new HTML document. It is used to represent screen changes or relevant steps within a dynamic interface.<\/p>\n<p>A virtual page <strong>does not create a real URL or change the website content by itself<\/strong>. It is an analytics convention that makes it possible to represent certain changes as separate views in reports.<\/p>\n<p>The term is especially applicable to single-page applications, multi-step processes, and other journeys that update content with JavaScript. <strong>Not every interaction should be recorded as a virtual page<\/strong>: a click, download, or form submission may be better described by another type of event.<\/p>\n\n<h2>How a virtual page is measured<\/h2>\n<p>On a traditional website, the measurement tool normally records a page view when the browser loads a URL. A dynamic interface may change the screen without that reload. <strong>The implementation must detect the meaningful change and send the new view information<\/strong> with a consistent location and title.<\/p>\n<p>Google Analytics 4 records the <code>page_view<\/code> event and can automatically measure certain browser-history changes through enhanced measurement. Google&#8217;s guide to <a href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/ga4\/single-page-applications\" target=\"_blank\" rel=\"noopener\">measuring single-page applications<\/a> also covers custom events when navigation is not represented in that history.<\/p>\n<p>The configuration can be implemented in application code or through a manager such as <a href=\"https:\/\/www.arimetrics.com\/en\/digital-glossary\/google-tag-manager\">Google Tag Manager<\/a>. <strong>There should be a single source responsible for each view<\/strong>, because combining automatic and manual measurement without control can duplicate the data.<\/p>\n<h2>When to use virtual pages<\/h2>\n<p>The decision depends on whether the change represents a content unit or a stage that should be analyzed as a page. <strong>These five cases may justify their use:<\/strong><\/p>\n<ul>\n<li><strong>Single-page application routes:<\/strong> view changes that update the URL through browser history without reloading the document.<\/li>\n<li><strong>Purchase processes:<\/strong> clearly differentiated identification, shipping, or payment steps displayed within the same technical page.<\/li>\n<li><strong>Multi-step forms:<\/strong> successive screens that form a journey and need to be analyzed separately.<\/li>\n<li><strong>Private areas or web tools:<\/strong> internal sections that load content dynamically and function as separate screens.<\/li>\n<li><strong>Overlays with standalone content:<\/strong> modals or panels that represent a complete, stable view rather than a secondary interaction.<\/li>\n<\/ul>\n<p><strong>Tabs, filters, and buttons are not automatically virtual pages.<\/strong> If they only modify an option or perform a one-off action, an <a href=\"https:\/\/www.arimetrics.com\/en\/digital-glossary\/event\">event<\/a> usually describes what happened more accurately and avoids inflating page-view metrics.<\/p>\n<p>The classification should remain stable across versions and devices. <strong>Continually changing names or granularity breaks comparability<\/strong> and makes it difficult to reconstruct the journey followed by users.<\/p>\n<h2>Configuration, validation, and limitations<\/h2>\n<p>Before implementing the measurement, the team should agree on which changes count as views and how they will be identified. <strong>The process can be organized into six checks:<\/strong><\/p>\n<ol>\n<li><strong>Define the view:<\/strong> specify the content or step it represents and justify why it should be analyzed as a page.<\/li>\n<li><strong>Set names and locations:<\/strong> use consistent values for the title and virtual path without mixing formats between sections.<\/li>\n<li><strong>Choose the trigger:<\/strong> detect the history change, screen appearance, or internal event that confirms the transition.<\/li>\n<li><strong>Prevent duplicates:<\/strong> verify that automatic and manual measurement do not record two <code>page_view<\/code> events for a single view.<\/li>\n<li><strong>Verify the parameters:<\/strong> review the location, title, referrer, and sequence so the journey can be interpreted correctly.<\/li>\n<li><strong>Test before release:<\/strong> use debugging tools and real-time reports to confirm every transition and repetition.<\/li>\n<\/ol>\n<p>An incorrect implementation can alter page views, paths, engagement-time attribution, and other <a href=\"https:\/\/www.arimetrics.com\/en\/digital-analytics-agency-spain\">web analytics<\/a> metrics. <strong>Testing should include direct entries, backward and forward navigation, reloads, and repeated changes<\/strong> to detect omissions or duplicate events.<\/p>\n<p>Virtual pages support measurement, but <strong>they do not turn a dynamic screen into a crawlable or indexable page<\/strong>. SEO, browser history, links, and the accessibility of an application depend on its real architecture, not the name sent to the analytics tool.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What a virtual page is, how it is measured in GA4, when to use it, and which checks prevent duplicate or inaccurate data.<\/p>\n","protected":false},"author":6,"featured_media":79645,"template":"","encyclopedia-tag":[1294],"class_list":["post-21323","encyclopedia","type-encyclopedia","status-publish","has-post-thumbnail","hentry","encyclopedia-tag-behavior-measurement"],"_links":{"self":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/encyclopedia\/21323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/encyclopedia"}],"about":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/types\/encyclopedia"}],"author":[{"embeddable":true,"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/users\/6"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/media\/79645"}],"wp:attachment":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/media?parent=21323"}],"wp:term":[{"taxonomy":"encyclopedia-tag","embeddable":true,"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/encyclopedia-tag?post=21323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}