Learn business growth with Google Analytics 4 Forums Google Analytics 4 Tracking page views of an embedded child page in GA4 using iframes Reply To: Tracking page views of an embedded child page in GA4 using iframes

  • Liam

    Member
    4 July 2023 at 3:48 am

    There could be a few reasons why the Page view event isn’t firing in the iframe. The key thing to note here is that iframes can have their own independent tracking. Try adding a GTM container to the child page that is direct in the iframe. Check if there’s anything in the iframe that is blocking the GTM or GA tags. Make sure that the domain of the iframe page also has been added in the Referral Exclusion list in GA. It might be the case that the GA4 considers the iframe as a new session if it’s not in the list. Following these steps, you should be able to see if the Page view event fires or not. Once you are sure that GTM and GA4 are working properly in the iframe, you would then be able to track the PVs on that child page.