For me, It's not that important if you track all your records in gambling or not. I'm aware that it will be helpful for some gamblers because they can monitor their total spending amounts most specially if they know their limits and needs to control their money to avoid losing much but for other gamblers who used to gamble and majority of the time they played is all about losing, It will be a bit frustrating because it reminds them of things that should be forgotten and never looked back on.
Most online casinos do have a track record of how much you have spent gambling in a particular month or over the week so if you want to at anytime check through the records you could go to history and find a full track record of how much you have spent over a period of time.
Keeping track record of how much you have spent gambling over a period of time will most likely get you to chasing losses, it will be much better if you make a budget monthly or weekly and keep to it, that way without going through the records, you will know how much you have spent so far and you will not be pushed to chasing losses because already you had had in mind to forfeit such amount if it turns out that way and you have lesser chances of chasing losses.