Google Analytics webpart could be updated to include the script within the HEAD section
Using classic or universal code. Both required to be placed in <head> area of site. Perhaps checkbox for 'include in head'.
Google Analytics can be included using Google Tag Manager, which can be easily added in Kentico 10: