Learn business growth with Google Analytics 4 Forums Google Analytics 4 Implementing GA4 Initialization and Utilizing GTM for Event Tracking Reply To: Implementing GA4 Initialization and Utilizing GTM for Event Tracking

  • Elizabeth

    23 May 2023 at 1:20 am

    From your question, it seems that you are trying to connect Google Analytics 4 (GA4) and Google Tag Manager (GTM) for cross-domain tracking and event triggering. The ‘gtag’ command you mentioned is a part of Google’s Global Site Tag (gtag.js) system, which is used to unify tracking systems across Google’s suite of tools.

    To initiate GA4, you’ll need to use the ‘config’ command with your GA4 property ID. This should initialize tracking. Configuring it through GTM as well may cause duplication or override your configurations.

    Instead, you can use GTM to manage the custom events you want to track. For cross-domain tracking, you need to have GA’s ‘Linker’ setting enabled on both domains, and they need to be specified in the Referral Exclusion List.

    The clientID and SessionID should be automatically handled by Google Analytics. If you’re not finding them in your reports, there may be an issue with the setup.

    In short, use ‘gtag(config)’ to start tracking with GA4, use GTM for custom events, and enable ‘Linker’ for cross-domain tracking. Check your setup if clientID and SessionID aren’t appearing correctly. Technical help may be needed to figure out the exact issue.