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

    Is there any solution to add custom code in forms source code but still embed it in an iFrame?

    Asked by contoolo on August 20, 2014 at 08:24 AM
    2) There are some walk around solutions adding some code to the source code integarion. However,  is there any solution for iFrame integration.
  • Profile Image
    JotForm Support

    Answered by ashwin_d on August 20, 2014 at 09:21 AM

    Hello contoolo,

    Our "Google Analytics" widget should work without any issue. It seems my colleague have explained you on the original thread on the delay for the data to appear in your account.

    If you want to add your own google analytics code in your form's source code and still be able to embed your form using iFrame embed code, here are the steps you should follow:

    1. Download your form's source code and add your custom code for google analytics.

    2. Upload this html file along with .js and .css files to your own server and grab the html file URL.

    3. Paste the following iFrame code in your wordpress page where you want to display your form:

    <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="XXXXX" frameborder="0" style="width:100%; height:100%; border:none;" scrolling="no"></iframe>

    4. Replace the "XXXXX" in the above iFrame code with the html file URL you saved in the step #2.

    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!

  • Profile Image

    Answered by PearsonUK-forms on May 28, 2015 at 05:48 AM

    This sounds good for a SMEs but for companies like us takes a long process to do a production release. So it will be nice to get a direct solution for the iframe cross domain analytics integration.

    This problem is hanging around from 2013 dated forum queries? Jotform should be capable of providing a solution to in next few years...