I am working on the code of a website that uses GA4 and GTM for tracking. Following the recommendation here: https://developers.google.com/analytics/devguides/collection/ga4/ecommerce?client_type=gtm#clear_the_ecommerce_object I am pushing a { ecommerce: null } object to the datalayer prior to each event containing an ecommerce object. As a result, the website's datalayer always ends up containing a large percentage of useless empty events,...
Originally asked by EtienneBilocq on Stack Exchange (stackoverflow) (CC BY-SA 4.0).