Google Analytics 4 ecommerce tracking
Many carts like Shopify, Magento 2 or Woocommerce have great plugins which you can easily enable the ecommerce tracking.
For other apps it is a little bit complicated than it used to be in the Universal Analytics.
Google suggests to use Google Tag Manager for adding ecommerce measurement.
Actually it is true and we modify tags there.