Learn business growth with Google Analytics 4 Forums Google Analytics 4 Analyzing Event Source on an Embedded Page with GA4 Reply To: Analyzing Event Source on an Embedded Page with GA4

  • Ashton

    Member
    28 May 2023 at 1:55 am

    To correct your GA4 setup across two websites, you would need to accurately setup cross-domain tracking. Since you’re dealing with two sites (one of which is embedded via an iFrame), proper attribution is necessary to avoid ‘direct’ sources. Consider creating separate GA cookies for each site, which will contribute to more accurate tracking. You may have to modify the way you generate client_id and session_id. The issue you’re having with both sites sharing the same GA cookie value suggests that the sites are not being seen as distinct by Google Analytics, hence causing attribution issues. If the debugger shows an already existing client id for the embedded site but not a session cookie, it signifies a possible error in the way these elements are being generated or tracked. You might need to bring in a developer with expertise in Google Analytics tracking to fix these issues.