How to add Hotjar tracking code in form?

  • stebrigli
    Asked on February 17, 2018 at 6:44 AM

    Hello,

    I would like to know how to insert the Hotjar tracking code into my form in order to trace the steps followed by customers.

    Can you help me with that?


    Thanks

  • Ardian_L
    Replied on February 17, 2018 at 7:41 AM

    Unfortunately, you cannot insert a Javascript code to the form using the Form Builder. However, you can download the form's source code and upload it to your server. Here's a guide: How-to-get-the-Full-Source-Code-of-your-Form.

    You might want to check our Form Analytics or the Google Analytics widget.

    Hope that helps. Thank you.

  • stebrigli
    Replied on February 17, 2018 at 10:04 AM

    Hello, thank you for the fast response. Unfortunately I don't have any experience with these activities. Is it possible for you to guide me through the steps for setting up the Hotjar code?

    Currently the main access to the form for customers is available through a link in my squarespace website.

    Thank you in advance, and sorry for the trouble.

  • Ashwin JotForm Support
    Replied on February 17, 2018 at 11:19 AM

    Please note that you need to download your form's full source code and then add your Hotjar tracking code in the html file of form. The following guide should help you how to download your form's full source code:   https://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form 

    If you can share your Hotjar tracking code, we will download your form's full source code and add the tracking code in form's html file. 

    We will wait for your response.

  • stebrigli
    Replied on February 17, 2018 at 11:48 AM

    Hello, thank you again. This is the tracking code:

     

    <!-- Hotjar Tracking Code for https://eu.jotform.com/73365218210348 -->

    <script>

    (function(h,o,t,j,a,r){ h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};

    h._hjSettings={hjid:784597,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>

  • Ashwin JotForm Support
    Replied on February 17, 2018 at 2:00 PM

    I have downloaded your form's full source code and added the Hotjar tracking code shared by you. I have sent an email to your registered email address with a link to download the form's full source code zip file.

    Do get back to us if you have any questions.