Income and When It’s Received vs Earned


When keeping track of my income, is it better to write it down based on when I earned it or when I actually received it? I’m working on keeping better records, and I don’t know if it matters.