Yes, both versions have the capability to track receipts, AnnLSchultz.
For QuickBooks Online, you can use the app with built-in receipt scanning feature. Simply take a photo of the receipt and attach it to a transaction.
Here's an article for more information: Scan receipts using the QuickBooks app.
In addition, QuickBooks Desktop uses the Scan Manager to attach files to your transactions. Please see this article on how to set it up: Set up QuickBooks Scan Manager.
If there's anything else you need, please don't hesitate to leave a comment. Thanks.