getNumTrackedPageViews

The getNumTrackedPageViews() method returns the number of tracked page views for the current page. On traditional sites, it will always show 1. On single-page applications (SPAs), it may show more because the trackPageView() method is used many times without reloading the page.

Syntax

getNumTrackedPageViews()
Not available
Not available
Not available
Not available
Not available
Not available

Returns

The number of page views tracked for the current page without reloading.

Type: number

Examples

To get the number of tracked page views:

_paq.push([function() {  
    console.log(this.getNumTrackedPageViews());  
}]);
Not available
Not available
Not available
Not available
Not available
Not available

Did this page help you?