Will the Google Analytics work with Iframe code?

  • Tye Hillam
    Asked on December 14, 2023 at 8:58 AM

    Will this work if the form is embedded on the website using an iFrame?

  • joenipearljacob
    Replied on December 14, 2023 at 9:18 AM

    Hi Tye,

    I understand that you would like to use Google Analytics on the form that is embedded using the Iframe code. As for the current feature, Google Analytics will only work if the form is embedded using the form's Source Code.

    I suggest you request Jotform's Developer Team for a feature in which Google Analytics will be compatible with the Iframe code.

    Also, you may consider using the Jotform's Form Analytics to track your form. I'll show you how:

    1. On the My Forms.
    2. Select the form, and click More.
    3. Under the Data section, click Form Analytics.

    Will the Google Analytics work with Iframe code? Image 1 Screenshot 20

    I hope this helps.

  • Mikhail JotForm Support
    Replied on December 14, 2023 at 9:42 AM

    Hi Tye, 

    Thanks for reaching out to Jotform Support. Google Analytics using Iframe code should work, but it will only capture information related with the form, not with your webpage. The Analytics can be impacted by the iframe, depending on how your website is working. You have to check Cross-Domain Tracking and Same Origin Policy. The best way to check this, is by testing directly on your website because the website itself can be a variable that will impact the feature.

    Let us know if you have any other questions.