How do you balance treats with your dog’s main meals?

Hi there! I’m trying to find the right balance between treats and my dog’s main meals. How do you manage to keep your dog’s diet healthy while still giving them some tasty treats?

I give carrots as there treats if not use part of the calorie intake on the treat to make up the daily amount they should have.