Hotjar cannot be used on a free hosted WordPress.com website
Go to hotjar.com to copy the Tracking Code from the Hotjar admin
Open the WordPress Editor.
Editing the Wordpress theme in this manner changes the code on your website's local copy of the theme. This means that if the theme is updated or re-downloaded at a later date, you might lose any changes.
Open Header (header.php) from the sidebar on the right.
The header.php file will load. It may not look exactly like the file below, but the basic structure should be similar.
Add the Hotjar Tracking Code just before </head>.
The header.php file you see might not contain any <head> HTML tags. If it doesn't, you'll need to find the correct file in your theme that does contain this tag and continue from there (this might even be referenced from the header.php file). Your theme's designer or a WordPress specialist would be the best place to start in this case.
Your Hotjar Tracking Code is now installed.
If your WordPress blog uses any caching plugins, you may have to clear your cache to make sure the script is added to your site. Once you have added the Hotjar Tracking Code to your site, you will need to wait a few minutes for Hotjar to check if it is installed correctly. This usually happens the moment your site is loaded with the Hotjar Tracking Code on it (you can visit the page yourself to speed it up). Once Hotjar has detected the Tracking Code on your site, the Site Dashboard will show a notice like the one below:
If after you install the Tracking Code, your website undergoes a major design change check to ensure your Tracking Code is still installed.
Installing Hotjar by using a Script Installation Plugin
If you're not comfortable installing the Tracking Code in your header.php file, you can use a header / footer script management plugin to assist with this.
You can use the OH Add Script to Individual Pages Header Footer plugin, for example, which helps to simplify the installation process.
Any script management plugins installed are not managed by Hotjar. Therefore, if you encounter any challenges during installation of the plugin or experience any incompatibility issues you would need to refer to the plugin author for assistance.
Remember to backup your WordPress installation before installing any new plugins to your site.
Once your Tracking Code is installed
You can start using any of Hotjar's 8 features: Heatmaps, Recordings, Forms, Funnels, Polls, Surveys, Recruiters and Incoming Feedback. Have a look at the guides below to get started.
- Creating Your First Heatmap Report
- How to Start Recordings
- Creating Your First Form Report
- Creating Your First Funnel Report
- Creating Your First Poll
- Creating Your First Survey
- Creating Your First Recruiters Widget
- Starting to use Incoming Feedback