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 to add tracking code to my form?

    Asked by northwestembroidery on October 05, 2016 at 05:52 PM

    I am using a program called Autopilot. They tell me to put this code in the <head> tag. 

    Can you add it to the attached form?





    <script type="text/javascript">(function(o){var b="https://api.autopilothq.com/anywhere/",t="1cd635a5fa474118b206dc6f1b1b1beb79027b4625d7407aacb3642771cebc46",a=window.AutopilotAnywhere={_runQueue:[],run:function(){this._runQueue.push(arguments);}},c=encodeURIComponent,s="SCRIPT",d=document,l=d.getElementsByTagName(s)[0],p="t="+c(d.title||"")+"&u="+c(d.location.href||"")+"&r="+c(d.referrer||""),j="text/javascript",z,y;if(!window.Autopilot) window.Autopilot=a;if(o.app) p="devmode=true&"+p;z=function(src,asy){var e=d.createElement(s);e.src=src;e.type=j;e.async=asy;l.parentNode.insertBefore(e,l);};if(!o.noaa){z(b+"aa/"+t+'?'+p,false)};y=function(){z(b+t+'?'+p,true);};if(window.attachEvent){window.attachEvent("onload",y);}else{window.addEventListener("load",y,false);}})({"app":true});</script>

  • Profile Image
    JotForm Support

    Answered by Kevin_G on October 05, 2016 at 10:39 PM

    Unfortunately the code you provided is JavaScript, you cannot edit the source code of your form in the Form Builder nor add any JavaScript code, only CSS code is allowed, this is for security reasons. 

    If you want to add that code you will need to get the source code of your form and embed it in your webpage, this guide will help to get the source code: How-to-get-the-Full-Source-Code-of-your-Form