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

    Adwords Conversion Tracking - How To Use With Jotform

    Asked by markashton on July 03, 2012 at 07:05 AM

    Hi,

    i'd just like to be clear on how to use Google Adwords tracking with jotforms.

    So, lets say a request callback form that generates leads .... and the conversion tracking code is to be on the thankyou page

    Jotform doctype is clearly html. In google adwords when generating tracking code it requests the markup language. Naturally, a jotform user would choose the markup language html.

    THis generates the following code ..... which contains javascript ......

    <!-- Google Code for Jotform - Request Callback Conversion Page -->

    <script type="text/javascript">

    /* <![CDATA[ */

    var google_conversion_id = 1038298220;

    var google_conversion_language = "en";

    var google_conversion_format = "3";

    var google_conversion_color = "ffffff";

    var google_conversion_label = "-Lw8CNLM_AIQ7NiM7wM";

    var google_conversion_value = 0;

    /* ]]> */

    </script>

    <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">

    </script>

    <noscript>

    <div style="display:inline;">

    <img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1038298220/?value=0&amp;label=-Lw8CNLM_AIQ7NiM7wM&amp;guid=ON&amp;script=0"/>

    </div>

    </noscript>

    However, the jotform thankyou page doesn't accept this - the html editor does its stuff and kind of throws divs in and gets rid of the js

    However, if the markup language is xhtml, then the code generated  is ...

    <!-- Google Code for Jotform - Request Callback Conversion Page -->

    <img height="1" width="1" alt="" src="//www.googleadservices.com/pagead/conversion/1038298220/imp.gif?value=0&amp;label=-Lw8CNLM_AIQ7NiM7wM&amp;guid=ON&amp;script=0"/>

    I have seen in other posts to use the first script ... just in between the <no script> tags.

    This is slightly different code than the xhtml above  ...

    My question is:

    1) Which to use ... normally on desktop

    2) Which to use for mobile use i.e. smartphones

    Many thanks

    Regards Mark

     

  • Profile Image
    JotForm Support

    Answered by Mike_T on July 03, 2012 at 04:19 PM

    Hello Mark,

    I believe that you can use either img code from the first example or the second xhtml version for both desktop and mobile forms. These examples look valid for me.

    <img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1038298220/?value=0&amp;label=-Lw8CNLM_AIQ7NiM7wM&amp;guid=ON&amp;script=0"/>

    & xhtml version

    <img height="1" width="1" alt="" src="//www.googleadservices.com/pagead/conversion/1038298220/imp.gif?value=0&amp;label=-Lw8CNLM_AIQ7NiM7wM&amp;guid=ON&amp;script=0"/> 

    Thank you.