Browse Help Center
Browse Help Center
Join 20,000+ other marketers and start getting marketing clarity

Subscribe to our newsletter and get proven marketing strategies for growing your business.

Related Integrations
Forms, Chat and Text Justuno

Last update on March 25, 2020

Justuno
Reporting AgencyAnalytics

Last update on April 17, 2020

AgencyAnalytics
Forms, Chat and Text Zoho SalesIQ

Last update on April 16, 2020

Zoho SalesIQ
Help Center Lead Tracking Form Tracking

Tracking Web Forms in Iframes


When a form is embedded using an iframe from a different domain, the form is actually hosted somewhere else either on the same domain or with 3rd party provider on an external domain.

Same Domain

If your form is hosted within the same domain, make sure your WhatConverts tracking script is on the page that is serving the form.

3rd Party Provider (External Domain)

If your form is hosted by a 3rd party provider, security measures implemented by browsers known as same-origin policy prevent the WhatConverts tracking script from accessing the content of the iframe. The following steps need to be followed in order to track forms in the iframe:

    1Add your tracking script to the page that is serving the form with the 3rd party provider.

    2Add the following JavaScript function to the page on your site where the iframe is being initiated.

    <iframe id="iframe-website" width="100%" height="800" frameborder="0"></iframe>
    <script type="text/javascript">
    wc_iframe_ypbib('https://www.whatconverts.com/','iframe-website');
    </script>

This code passes along the traffic source details to the tracking script with the 3rd party provider. The URL source of the iframe should replace “https://www.whatconverts.com/” and the ID attribute should replace both instances of “iframe-website“.

Below is an example of an iframe form from Acuity Scheduling.
Iframe Source and ID for Form Tracking in Iframes

Note: The WhatConverts tracking script needs to be installed on the page before the JavaScript function above.

Was this page helpful?
👍Yes
👎No
Request a Live Demo
Get a FREE presentation of WhatConverts

One of our marketing experts will give you a full presentation of how WhatConverts can help you grow your business.

Request a Live Demo
Whatconverts Features for your Business
HIPAA Compliant Call Tracking Software
Lead Tracking HIPAA Compliant Call Tracking Software

Keep ePHI information secure.

Leads by Lead Page
Analytics & Insights Leads by Lead Page

Quickly see if your visitors converting on a "Contact Us" page, or on your site's other pages.

Filter/Group by Product or Service
Lead Management Filter/Group by Product or Service

Seeing leads grouped by product or service allows marketers, clients and business owners to gain deeper insights.

Leads by Campaign & Keyword
Analytics & Insights Leads by Campaign & Keyword

Optimize pay per click efforts with campaign and keyword tracking for every conversion.

Join 20,000+ other marketers and start getting marketing clarity

Subscribe to our newsletter and get proven marketing strategies for growing your business.

Related Integrations
CRMs Zoho CRM

Last update on March 25, 2020

Zoho CRM
Forms, Chat and Text Formsite

Last update on March 25, 2020

Formsite
Forms, Chat and Text Contact Form 7

Last update on March 25, 2020

Contact Form 7
ready to get marketing clarity?

Grow your business with WhatConverts

14 days free trial Easy setup Dedicated support