Iframe Submission Tracking

Options for Iframe Form Tracking

Tracking Iframe Form Submissions in Ruler Analytics

If you're using an iframe or a third-party scheduling or calendar tool, tracking form submissions in Ruler Analytics can be more complex. Below are the recommended approaches to ensure accurate tracking.

Embed the Form Directly on Your Website (Recommended)

Where possible, we strongly recommend embedding your form directly into your website using HTML rather than an iframe.

Many providers offer both iframe and native embed options. Using a direct embed allows for greater flexibility and more reliable tracking, as scripts can interact with the form more easily.

Benefits include:

  • Improved tracking accuracy
  • Greater control over form behaviour Easier integration with Ruler Analytics scripts

Redirect Iframe Submissions to a Thank You Page

If embedding the form directly isn’t possible and you need to use an iframe, the next best option is to redirect users to a thank you page hosted on your website after submission.

This allows you to add tracking scripts to the page and capture conversion data.

Best practices:

  • Ensure the thank you page is hosted on your domain
    • Confirm you can add custom scripts to this page

Pass Form Data via URL Parameters

To capture key submission details (such as email address or phone number), configure your form provider to pass this data into the thank you page URL as query parameters.

Example:

https://www.yoursite.com/[email protected]&phone=0123456789

This functionality depends on your iframe or form provider. If you're unsure how to enable this, we recommend contacting their support team for guidance.

Capture Data Using Ruler Analytics URL Script

Once the form data is available in the thank you page URL, you can use Ruler Analytics’ URL capture script to extract these values and send them as a form submission event.

This enables you to:

  • Track conversions from iframe forms
  • Capture user data for attribution
  • Link marketing activity to revenue

While iframe-based forms can limit tracking capabilities, using the methods above will help ensure you can still capture valuable conversion data in Ruler Analytics.