Forums Forums White Hat SEO PPC Conversion tracking in an iframe

  • PPC

    Conversion tracking in an iframe

    Posted by harmannanana on April 6, 2023 at 4:28 pm

    Hi all,

    Currently working with a client where the conversions form is in an iframe on their site. The entire conversion process, including the thank you page, is loaded within the iframe.

    When looking through Meta’s support, they said you could either install manual event code (not an option for us) or create a custom conversion to track conversions in iframes.

    Does anyone know if this works? Can I create a custom conversion from the pixel on Website A (clients site) and track all URL traffic of the thank you page of Website B (the iframe) and have it accurately tracked?

    I created the custom conversion but since it’s using a UTM specific to our campaign, I wouldn’t know if it works or not until the campaign is live. Any help is appreciated!

    harmannanana replied 2 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Uncrowned_Emperor

    Guest
    April 6, 2023 at 4:53 pm

    If you have your pixel on site A but not on site B, it won’t track the conversion. Assuming A and B are on different domains.

    What’s the tool you’re framing? A lot of tools either give you a place to add tracking code or send messages to parent pages which you can set an event listener for and fire events on your parent page accordingly.

    The specific UTM makes things more complicated. I am also not sure if this would make sense? Cant you just check for this specific conversion attributed to the specifics which have this UTM?

  • FNtaterbot

    Guest
    April 6, 2023 at 7:07 pm

    As long as your client is able to add tracking to “Website B” you shouldn’t have any issues.

    The normal challenge with tracking iframes is that they are often used to integrate another company’s website into your own, but since that isn’t the case here it should be pretty standard.

  • DoggyLegs

    Guest
    April 7, 2023 at 12:56 am

    I’ve managed to capture events inside an iframe using custom JavaScript code. By chance the iframe (which I did not control) emitted a window event that I could listen for.

    Iframes can be tricky business, I would avoid them as much as possible

  • skelton

    Guest
    April 7, 2023 at 11:19 am

    Even if you use custom conversion, the pixel itself still needs to be the iframe. It cannot be put there by the surrounding page or a tag manager.

    And if you can add the pixel, you can add the event code.

Log in to reply.