If the Google Analytics payload size is larger than 8192 bytes, the hit will not be sent to Google Analytics. This usually occours with GA Enhanced Ecommerce Impressions, or GA4 Items sent with the view_item_list Event.
This GTM Tag Template (Web) overcomes this problem by breaking GA4 Ecommerce Items or GA EEC Impressions payload into smaller chunks.
This Template is available in the Google Tag Manager Template Gallery.
This setting lets you choose if you want to read Ecommerce data from the Ecommerce Object (Data Layer), or from a GTM Variable.
If you for example have rewritten your Ecommerce Object using a Custom Javascript Variable, you can choose this Variable as the input for this template. A complete Ecommerce Object must be returned in the Variable.
How many items you can return will depends, but a good starting number to experiment with is 15.
Choose the Event Name that should be used as Trigger for the chunked ecommerce data. Suggested Event Name is view_item_list_chunk.
Use the Trigger you normally would have used to trigger the GA/GA4 Tag. In this case the view_item_list Event is used as Trigger.
In this example setup we are using view_item_list_chunk as a trigger for the GA4 view_item_list Event Tag.
Since GA4 Ecommerce only works with predefined Event Names, notice that view_item_list has been manually added as Event Name in the GA4 Event Tag example.