How to add tracking code to my form?

  • Profile Image
    northwestembroidery
    Asked 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?

    Thanks,

    Erik

     

     

    <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
    Kevin_G
    Answered 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