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()
getLinkTrackingTimer(): Promise<number>
getLinkTrackingTimer(): Promise<number>
getLinkTrackingTimer(): Promise<number>
getLinkTrackingTimer(): Promise<number>
getLinkTrackingTimer(): Promise<number>
getLinkTrackingTimer(): Promise<number>

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());  
}]);
getLinkTrackingTimer(): Promise<number>
getLinkTrackingTimer(): Promise<number>
getLinkTrackingTimer(): Promise<number>
getLinkTrackingTimer(): Promise<number>
getLinkTrackingTimer(): Promise<number>
getLinkTrackingTimer(): Promise<number>