How to embed a Facebook pixel to thank you page?

  • Profile Image
    Asked on November 06, 2017 at 05:58 PM

    I would like to add a Facebook pixel code just above the </head> section of the JotForm thank you page from my FAFSA Guide form.   I'd like to do it for this form once the user clicks submit. It will communicate to Facebook that I have a conversion from an ad. Here's the pixel code I need to add:

    <!-- Facebook Pixel Code --> <script> !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,'script', ''); fbq('init', '363895917398571'); fbq('track', 'PageView'); </script> <noscript><img height="1" width="1" style="display:none" src="" /></noscript> <!-- End Facebook Pixel Code -->


  • Profile Image
    Answered on November 07, 2017 at 12:09 AM

    Unfortunately, any HTML/Javascript codes added to the Thank you page will be truncated due to security reasons. If you want to add the code to Thank you page, you may consider creating a custom web page adding your Facebook pixel code so that you can redirect to that page after submitting the form. This redirection can be done by using the option 'Redirect to external link' in the Thank you page settings.

    Please give it a try and let us know if you need any further assistance. We will be happy to help.