What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    How can I add Facebook Pixel to the Thank You message?

    Asked by frostynova on June 12, 2017 at 02:22 PM

    I don't see a way to add an HTML block to the Thank You message?

  • Profile Image
    JotForm Support

    Answered by david on June 12, 2017 at 03:43 PM

    The Facebook pixel code can be added to the source code of the thank you page.

    Please check the screenshot below on how to add code in form's source code of thank you message:

    The following thread has information on how to properly add the tracking pixel code:


  • Profile Image

    Answered by frostynova on June 12, 2017 at 04:38 PM

    Yes, but the problem is it seems that the code is being stripped. 


    For example, here's the code I put in:


    <!-- Facebook Pixel Code -->







    fbq('init', '960864517xxxx', {

    em: 'insert_email_variable'


    fbq('track', 'PageView');

    fbq('track', 'Lead');


    <noscript><img height="1" width="1" style="display:none"



    <!-- DO NOT MODIFY -->

    <!-- End Facebook Pixel Code -->


    But then it strips it and makes it: 


    <!-- Facebook Pixel Code --><noscript><img height="1" width="1" style="display:none"


    /></noscript><!-- DO NOT MODIFY --> <!-- End Facebook Pixel Code -->


    The problem with that is, there should be TWO events going in there. PageView AND Lead. 


  • Profile Image
    JotForm Support

    Answered by david on June 12, 2017 at 05:34 PM

    Scripts cannot be added to the thank you page or other areas.  The following thread has an example of how to add the pixel without a script: