Embedded form not firing Google Tag Manager gtm.formSubmit tag

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

  • Profile Image
    Answered 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 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.




  • Profile Image
    Answered 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 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.


  • Profile Image
    Answered 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.