Learn business growth with Google Analytics 4 Forums Google Analytics 4 Optimizing event tracking with multiple gtag codes in Google Analytics 4 (GA4) Reply To: Optimizing event tracking with multiple gtag codes in Google Analytics 4 (GA4)

  • Roman

    Member
    3 April 2023 at 2:03 pm

    You’re correct in surmising that it may be due to not specifying exactly which Google Analytics property you wish to send the event to. When you call gtag('event',...), it sends that event to all configured properties, hence the double reporting. To send an event to a specific property, you should use the following syntax: gtag('config', 'GA_MEASUREMENT_ID'); followed by your desired gtag('event',...). Remember to replace ‘GA_MEASUREMENT_ID’ with your actual Google Analytics Measurement ID. This will make sure that the event is sent only to the specified property.