since magnesium is something that isn't required to be on labels, find a list of foods high in it and make sure you're eating some of those. if you are and you're somewhere in the 60-80% on the tracker, don't sweat not hitting it exactly because it's likely that all you are eating isn't showing up in the tracker. for iron, cook in cast iron pans/skillets and add some blackstrap molasses.
I am trying to create a diet that fulfills my nutritional needs for vitamins and minerals without using vitamins or supplements but still keeping within my calorie limits for the day. My diet is deficient in magnesium and iron on a regular basis although I eat a lot of fruits and vegetables, lean protein and whole grain carbohydrates. Any recommendations?