How to track iFrames for Optins & Orders

iFrames notoriously cause tracking issues. Here is a list of options for tracking iFrames.

Potential Solutions:

Option #1 - Inject Tracking Code inside of iFrame

Option #2 - Thank-You Page Hack

Option #3 - Zapier Solution

Option #4 - OnFormSubmission Solution

Option #5 - Remove iFrames

Test the solutions before making the full switch to your technology stack!

Use the Tracking Validation Tool to test & ensure tracking passes after implementing your changes.

Option #1 - Inject the Tracking Code inside of iFrame

  • Native Setting
    The best option if your software has the ability to add the Wicked Tracking Code directly within a pre-built setting.

    For Example: How to track Everwebinar/Webinarjam (see Step #4)
  • Google Tag Manager
    An option if your software has a native integration with Google Tag Manager that allows you to inject codes into the form.
  • Custom Code
    If your software does not have any native settings to add the Wicked Tracking Code directly, but the source of the iFrame is to your URL, then have a developer add our tracking code directly into the iFrame itself.

Option #2 - Thank-You Page Hack

  • Native Functionality
    An option if your software has the ability to send the email address (and ideally, the UTMs) to a trackable thank-you page. Follow our help doc: Using the Thank-You Page Hack

    For Example: Tracking Calendly Appointments
  • Custom Code
    If you have access to the email address, then a developer can help you create the code necessary to send the email address to your trackable Thank you Page. The end goal is: Using the Thank-You Page Hack

Option #3 - Zapier Solution (or similar)

Create a zap that will capture the event and send it to Wicked Reports. To work, your software must offer IP Address as one of the dropdown options in Zapier.

For Example: See Kartra for example - Step #2.4

Option #4 - OnFormSubmission Solution

  • Native Functionality
    If your form tool supports an onFormSubmission event (or similar), use it to send the email address to the Wicked Reports tracking code at the moment the form is submitted. This allows the tracking to fire while the user's session is still active.

  • Custom Code
    Have a developer add a small code snippet that sends the email to the Wicked Reports tracking code using window.parent.postMessage. This method is especially helpful when the form lives inside an iFrame and no ip address is available.

For Example: See GoldCast Forms


Option #5 - Remove iFrames

We recommend avoiding iFrames when possible. They are known to cause tracking issues - not just for Wicked users, but in general. If removing iFrames is a plausible option, it will ensure simpler and smoother tracking.