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

    Embedded form not firing Google Tag Manager gtm.formSubmit tag

    Asked by ajelstein on June 30, 2014 at 08:35 PM

    Hi Guys,

    I'm implementing Google Tag Manager (GTM) on my site and I'm having trouble tracking embedded jotforms.

    I'm the following type of embed codes: <script type="text/javascript" src="//form.jotform.us/jsform/40544682459159"></script>

    I tried embedding the source code and that fired the event properly, but I really prefer the way the first embed method displays the Thank You message within the current page rather than loading a new page, so I'd rather not switch if I can avoid it.

    FWIW: My CMS is Amazon Webstore; 

    Have you encountered this issue before?... Any thoughts on how I can resolve it?

    Thanks in advance for any help you can provide.

    Page URL:
    http://www.bootbutler.com/info/contactUs

    Thank You message source google tag maanger google tag tag manager
  • Profile Image
    JotForm Support

    Answered by ashwin_d on June 30, 2014 at 09:58 PM

    Hello ajelstein,

    Do you actually add any other specific code in your form? I did try to do some research and found that GTM requires a small piece of JavaScript code to be added in your web page. Please be noted that for security reasons adding any sort of script code in form is not possible any more.

    I would suggest you to continue using your form's source code.

    Thank you!

  • Profile Image

    Answered by ajelstein on July 01, 2014 at 03:01 PM

    Hi Ashwin,

    GTM requires a snippet of code on the web page (the code is already on the contact us page that I submitted to you) but since I am embedding the jotforms I don't think there is any need to add code within the actual form in order to track it. Please let me know if you or your colleagues have any other suggestions.

    I expect that this will come up with increasing frequency in the future as GTM gets more popular; its a vastly superior way of managing tags for Google Analytics.

    Thanks,

     

    Andy

  • Profile Image
    JotForm Support

    Answered by BDAVID on July 01, 2014 at 03:46 PM

    Have you tried the iFrame embedded option? I think so far the source code is the best option you can use with JotForm to fire the event properly. 

  • Profile Image

    Answered by ajelstein on July 08, 2014 at 06:15 PM

    Hi, I just wanted to give a quick update on the final outcome.

    I tested the iFrame embed option but that did not resolve the issue either.

    I ended up using the custom code embed option with a custom Thank You page on my domain. If anyone else reads this and wants to duplicate the setup. I also found it necessary to add the jotform domains (with sub-domains) to the Referral Exclusion List in: Google Analytics/ Admin/ PROPERTY/ Tracking Info/ Referral Exclusion List

     

    Thanks for your efforts.

    Andy

  • Profile Image
    JotForm Support

    Answered by jonathan on July 08, 2014 at 07:36 PM

    Hi Andy,

    Thank you for sharing to us the solution found. This should help other users that have similar implementation also.

    Contact us again anytime for any other assistance you need.

    Regards,