Steps:

  1. Get the Hotjar tracking code
    • Log in to Hotjar
    • Go to Sites & Organizations
    • Select your site
    • Click Tracking code
    • Copy the script shown
  2. Paste the code on your website
    • Add it in the <head> section.
    • Example Hotjar code
<!-- Hotjar Tracking Code -->
<script>
  (function(h,o,t,j,a,r){
      h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
      h._hjSettings={hjid:1234567,hjsv:6};
      a=o.getElementsByTagName('head')[0];
      r=o.createElement('script');r.async=1;
      r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
      a.appendChild(r);
  })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>

Tracking Section – New Tab

Add a new tab in the Tracking section

Tab name (recommended):

  • Hotjar

Tab Purpose

  • This tab is used to store and manage the Hotjar tracking code

Section Placement Guidance

  • Tracking Use this if the tag is primarily for analytics and measurement.
  • Description refer to Wording Guide