Learn business growth with Google Analytics 4 Forums Google Analytics 4 Tracking Conversions in GA4: Updating Div from iframe, Feasible? Reply To: Tracking Conversions in GA4: Updating Div from iframe, Feasible?

  • Wyatt

    Member
    1 July 2023 at 11:01 pm

    Yes, technically it’s possible to register a conversion when the iframe div changes, as mentioned, but it might be more complex due to the nature of iframes. This is because the iframe content tends to be treated as a separate document and does not interact seamlessly with its parent page. This might demand some advanced JavaScript coding where a listener is implemented to watch for changes in the iframe. When the listener detects a change (like the appearance of the “Thanks for submitting your contact us submission” message), it triggers a GA4 event, which can be marked as a conversion. It’s important to note that this can require specific technical skills and a deep understanding of both the document structure and the Google Analytics 4 platform. Always seek expert advice if you are uncertain so as to ensure accurate data collection and reporting.