setTimingDataSamplingOnPageLoad

The setTimingDataSamplingOnPageLoad() method sets the sampling for page timing reports. The default value is 10 percent.

This method needs to precede the trackPageView().

Syntax

setTimingDataSamplingOnPageLoad(sampling)
Not available
Not available
Not available
Not available
Not available
Not available

Parameters

ParameterTypeDescriptionRequired
samplingnumberThe sample size for page timing reports in percentage (how often they'll be sent). The allowed values are between 0 and 100. 0 is 0% and means that you won't collect data for page timing reports.Yes

Examples

To change the sampling to 15%:

_paq.push(["setTimingDataSamplingOnPageLoad", 15]);
Not available
Not available
Not available
Not available
Not available
Not available

Notes

  • By default, 10% of all tracked events store information for page timing reports (the sample size is 10%).
  • If a visitor closes the page before it fully loads, data for page timing reports won't be collected.

Related methods