Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #330383

    jeanetteleblanc
    Participant

    Hi,
    I wanted to use the service Hotjar on my site but am unsure where to copy the script.

    <!-- Hotjar Tracking Code for peacelovefree.com -->
    <script>
        (function(h,o,t,j,a,r){
            h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
            h._hjSettings={hjid:52047,hjsv:5};
            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,'//static.hotjar.com/c/hotjar-','.js?sv=');
    </script>
    #330510

    Lely
    Moderator

    Hello There,

    You may copy that script in Appearance > Customize > Custom > Javascript. Please note that when you copy that <script> and </script> is not necessary. So you only have to copy this code:

     (function(h,o,t,j,a,r){
            h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
            h._hjSettings={hjid:52047,hjsv:5};
            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,'//static.hotjar.com/c/hotjar-','.js?sv=');

    Hope this helps.