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

    google analytics event click

    Asked by fondoambiente on February 17, 2016 at 10:24 AM

    Hello how do i insert analytics code to the event click of a button. The code is this:


    onclick="ga('send', 'event', 'newsletter_5x1000', 'iscrizione');



  • Profile Image
    JotForm Support

    Answered by Charlie on February 17, 2016 at 01:54 PM

    We have a Google Analytics widget that captures a lot of activity on the form. You can check it here: http://widgets.jotform.com/widget/google_analytics.

    You cannot add script codes or Javascript functions on the form using our form builder, but that should be possible if you will be using the form's full source code. You can get that code by following this link: http://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form.

    However, I strongly advise checking our Google Analytics widget as it is more convenient to use.