Log it right away
The best time to log a cash purchase is when you pay. Keep it to a few seconds: an amount and a word, like "taxi 30".
Or log the withdrawal
If you use cash for small everyday things, log the ATM withdrawal as cash spending and stop there. You won't know every item, but your total is right.
Don't count it twice
If you log both the withdrawal and each item paid with that cash, you'll count the same money twice. Choose one way and stick with it.
Keep cash for the few places that need it
The less you use cash, the less there is to remember. Use cards for everything you can, and they log themselves.
In Expensly, type "taxi 30" in the quick chat or use the two-tap keypad. When your bank texts you about an ATM withdrawal, it asks once whether to count it as spending, so cash is never counted twice.