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

    Adding Google Analytics to the form source code

    Asked by BreathworksUK on October 18, 2016 at 10:33 AM


    I'm trying to implement our google ad words analytics and I need to add the following source code to the submit button on all of our forms.  Is this possible?

    <!-- Google Code for Conversion Conversion Page -->

    <script type="text/javascript">

    /* <![CDATA[ */

    var google_conversion_id = 965488567;

    var google_conversion_language = "en";

    var google_conversion_format = "3";

    var google_conversion_color = "ffffff";

    var google_conversion_label = "bgd2CPnNj2oQt9-wzAM";

    var google_remarketing_only = false;

    /* ]]> */


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



    <div style="display:inline;">

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



  • Profile Image
    JotForm Support

    Answered by Kiran on October 18, 2016 at 12:14 PM

    You may consider adding the Google Analytics widget to your form. 


    You'll just need to enter the Tracking ID so that the tracking will be done automatically.

    Hope this information helps! Please get back to us if you need any further assistance. We will be happy to help. 

  • Profile Image

    Answered by BreathworksUK on October 20, 2016 at 06:12 AM

    I've taken a look at this and this refers to Google analytics rather than google adwords conversion code, please could you check whether this would work in the same way or whether you have a seperate widget for Google adwords?

    The code I have been given does have an id, though this is different from our analytics code.
  • Profile Image
    JotForm Support

    Answered by Chriistian on October 20, 2016 at 09:33 AM

    If you want to add a Google Adword Conversion Tracking, you  can try the following options:

    1) Get a conversion tracking pixel (noscript) and add it to the source of the Form Thank You Page. For more information, you can check this related thread: Adding Adwords Conversion Tracking to the Thank You page

    2) Add your conversion code to the custom Thank You Page on your website, and configure form yo use that page as a Thank You URL. For more information, you can check this article: Setting Up the Thank You Page.


    Hope it helps.