To truly measure the temps globally you would need a thermometer on every square inch of the earth, and use the same exact kind, calibrated perfectly, all the time. And they didn’t have those at the beginning of the earth when it was much hotter.
The oldest reliable temperature data go back only about 250 years. Around the time of American revolution.
That’s also the time of the Maunder minimum.
Most places go back a lot less.