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 an issue for the ecommerce sites that use Shopify. Shopify has a document where they list some possible reasons of this discrepancy 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.