Discrepancy in Transaction Data between Google Analytics and Shopify. Some Random Shopify Transaction are missing in Google Analytics

Discrepancy in data especially in the revenue and transaction number is often as issue for the ecommerce sites that use Shopify. Shopify have a document where they list some possible reasons of these discreapancy https://help.shopify.com/en/manual/reports-and-analytics/discrepancies. However these explanations are not very helpful because they do not contain any practical advice on how this can be fixed.