1. Guides
  2. Heatmaps & Session recordings

How to force your sample to be tracked in heatmaps & session recordings

Sometimes you might want to force the screenshot on a heatmap to make sure it's correct, or you might want to check the configuration on your session recording. If your sample rate isn't 100% there is a risk your activities won't be recorded.

To ensure your activities are included in the sample group you can append a URL parameter
?pk_hsr_forcesample=1 to the page you're visiting. The page still needs to follow the target rules you configured in your heatmap or session recording. 

www.example.com?pk_hsr_forcesample=1 

Make sure your IP-adress is not blocked. You find which IP-adresses are blocked under the analytics settings in the data source you want to track. 

If you instead want to prevent your activity to be recorded, you can change the URL parameter to ?pk_hsr_forcesample=0. 

www.example.com?pk_hsr_forcesample=0