Looking for installation help and where to find your Hotjar Tracking Code?
For more information on how to install the Tracking Code and where to find it visit our installation pages.
The Hotjar Tracking Code is used to trigger data collection when installed within your site. This code is responsible for collecting and sending the data to your Hotjar account. Installation involves copy and pasting your unique Tracking Code within the site you would like to track.
Only one Tracking Code can be installed on a single page of your site.
The Tracking Code has four main functions:
- Queues any events it should track before the Hotjar script is loaded.
- Tells Hotjar which site settings it should load and where it should save the data collected by using the hjid (Hotjar ID).
- Keeps track of the version of the Tracking Code you are using with hjsv (Hotjar Snippet Version) This is only needed if Hotjar ever updates the Tracking Code and needs to discontinue older ones. Knowing which version your site includes allows us to contact you and inform you accordingly.
- Loads the Hotjar Script