Pageviews are one of the best known metrics, present in almost all web analytics reports.
This metric is populated with pageview hits, which are sent to Google Analytics every time we view a page or refresh the page itself.
However, in recent years a series of technologies have developed that improve user navigation on the site (classic example: Single Page Applications) but which create problems in their tracking.
With these applications, the content of the page changes as the user navigates, the URL changes, yet the page does not reload.
If the page does not reload, the pageview hit is not sent to Google Analytics.
Very often it happens that not the whole website is developed with an Ajax-like technology, but only some parts of it.
What happens in these cases?
- you can track the whole website normally
- you can’t trace pages with this technology
It may happen that you are unable to track page views in crucial points, for example in the sellout funnel: these are precisely the cases in which virtual pages are needed.
What is a virtual page
The Virtual Page is a page that does not exist on your website, but that you are creating in order to send a pageview hit.
By creating this hit, it is possible to get around the obstacle and, in all those pages of your website, where the content does not reload, you can use this virtual page to send the hit to Google Analytics anyway.
By doing so, GA receives the information of where the user is and you can use this information for your own analyzes.
Virtual Pages: practical cases
There are several cases in which, the Virtual Pages, come to the rescue:
- Single Page Application (SPA): As mentioned above, SPA can request the use of virtual pages. There is no need to create virtual pages on all pages of your website, but it can be useful to use them in certain places. If you want to know how to track Single Page Applications, read my dedicated post;
- Checkout: it is very useful to use the Virtual Pages in this area of the website, where, often, the user makes different interactions but the URL does not change;
Virtual Pages and Google Analytics
Once I have created the Virtual Page, I can easily use it like any other page on my site.
For example, I can decide to set it as a Goal and give it a value:
Or I can insert virtual pages into a Funnel so that my Goal is completed:
Inspecting the Chrome Console, the Virtual Pages will appear within the hit pageview like any other page, with:
- its URL
- the title you can give it when you create it
If you want to find out how to implement virtual pages on your website with the help of Google Tag Manager and Google Analytics, read my complete guide in this post. In a few steps, by creating dedicated tags and triggers you will see how to inject virtual pages in certain points of your site and how to set a Goal in GA.
You may also be interested by the following articles:
- Content Grouping in Google AnalyticsAnalyzing the contents of a website, has it ever happened to you that you want to know what are the performances of the main sections? Each website is divided into sections, which reflect the organization of its contents. This applies to all sites, from e-commerce, which have sections of product categories, type of articles, sellout […]
- Google Tag Manager: Lookup Table VariableThe Lookup Table variable in Google Tag Manager allows you to read the value of an input and, if this value matches certain requirements, it will return some output. There are several situations where this variable can help us: rename a web page, rename the Source dimension for a social (Instagram, Facebook LinkedIn etc.) and […]
- What Virtual Pages are in Google AnalyticsPageviews are one of the best known metrics, present in almost all web analytics reports. This metric is populated with pageview hits, which are sent to Google Analytics every time we view a page or refresh the page itself. However, in recent years a series of technologies have developed that improve user navigation on the […]
- How to track Virtual Pages: Google Tag Manager and Google AnalyticsIn this post, we see how to track Virtual Pages with the help of Google Tag Manager and Google Analytics. If you don’t know what Virtual Pages are and learn more about how they can help you especially if you are tracking a Single Page Application, I suggest you to read my dedicated post. To […]
- Google Analytics 4: Cross Domain TrackingIn this post I’ll show you how to implement cross domain tracking in the new version of Google Analytics 4. With GA4 cross domain tracking is much easier than the Universal Analytics version, in fact: in Universal Analytics you had to set everything up within Google Tag Manager In Google Analytics 4 you can do […]
- Google Analytics 4: Referral Exclusion ListReferral traffic is, generally, traffic from other websites that contain one or more links to your site. The new Google Analytics 4 allows you to measure this kind of traffic for your analysis, without the use of tags, triggers or variables. Proper implementation of referral traffic allows you to understand which other websites are bringing […]
- Google Analytics 4 Demo AccountGoogle has just released the Demo Account for Google Analytics 4 Now, all users can access and discover the functionalities offered by GA4. But let’s go in order! Post Content: 1) What is the Google Analytics 4 Demo Account 2) How the Demo Account is implemented 3) What can I do with the Demo Account […]