Learn business growth with Google Analytics 4 › Forums › Google Analytics 4 › Consolidating Multiple Google Tag Custom Events into a Single Request › Reply To: Consolidating Multiple Google Tag Custom Events into a Single Request
-
One strategy you might consider is to use a method where you delay the sending of the
offer_view
event until a certain condition is met – such as a user leaving the page, or after a count of viewed products reaches a certain threshold. Event parameters of GA4 (likeoffer_id
in your use case) do not support passing an array, and hence bundling IDs together in the same event is not directly possible. Consider using localStorage or another method to collect the product IDs client-side as they are viewed. When you’re ready to send the event to GA4, take the collected product IDs, create a string from them (like “75_76_37”), and pass that as theoffer_id
. This won’t reduce the number of events you’re sending, but it would bundle the offer views together and should lower the number of actual requests to GA4. However, please note that this might complicate your event analysis as multiple offer views will represented as a single event, but with a compound value. You would need to split these values and count them properly in your reports/dashboard.