Piwik PRO by default uses 10% of all page views to record page performance data. However, you can change this if you want.
To increase the sample to 15%, follow these steps:
- Log in to Piwik PRO.
- Go to Menu > Tag Manager.
- Navigate to Tags.
- Click Add a tag.
- Name your tag.
- Name your tag and select the following type: Custom code (async).
- In Tag code, add the following code:
<script> var _paq = _paq || ; _paq.push(['setTimingDataSamplingOnPageLoad', 15]); </script>
Note: In this code, you can change 15 to a smaller or bigger sample. Just keep in mind that if you increase the sample size beyond 15%, there will be more tracking requests, which can cause some slowdown in tracking performance.
- Click Choose existing trigger
- Select All page views.
- Click Save.
- Click Publish.
- All done!