How do I add my Hotjar tracking code to jotform

  • joostklaver
    Asked on November 10, 2021 at 11:05 AM

    Hi Jotform,


    I'd like our Hotjar tracking code to be added to the Jotform "Aanvraagformulier Kinderfeest" form. I've read on your support page that the Hotjar tracking code needs to be added to the source code and then uploaded to our server. However, I can't seem to find the "source code" option in the "embed" section. Could you please help add the code to our form?


    This is the Hotjar code we'd like to add:

    <!-- Hotjar Tracking Code for https://form.jotform.com/211232622501034 -->

    <script>

    (function(h,o,t,j,a,r){

    h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};

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


    Many thanks in advance!

    Eva

  • Parker JotForm Support
    Replied on November 10, 2021 at 12:59 PM

    Hello,

    Unfortunately source code is only available to classic layout and not card mode which your form is. You'll need to change the layout to classic if you wish to add this tracking in as scripts are now allowed to be used, which is why the form needs to be hosted on your website.

    https://www.jotform.com/help/493-how-to-change-the-form-layout/