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)
-
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 desiredgtag('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.