I've personally been tracking my diet publicly for over a year now. You can see my public record here -- www.joelogs.com
Over the years I've been on/off with tracking. But I've been able to stick with it over a year now, the longest I ever have. The big difference between now and then is that I'm okay with being 80% accurate if it means easy consistency.
Previously it was very important for me to be 100% accurate. This is especially difficult to do when you eat out. By allowing myself to be imperfect in my logging, it eases the burden to track.
Here's what I do now.
1) Take a photo of everything I eat
2) Log right after eating if I feel like it, but usually I log at the end of the day
Sometimes I underestimate. Sometimes I overestimate. I think it washes out in the net. If my logging is really off it will show in my scale and progress pics.
Doing the above has given me lots of visibility into my diet and unlocked optimizations.
Consistency > Accuracy