I don´t know why but every time I update Generate Press I lose the html code in the header of Google Analytics and Search Console. Why is this happening and how can I solve this for future updates?
if your adding scripts directly to the theme templates then these are overwritten on update. You can add them using a child theme or the simplest way is to use the GP Hook Element and hook your codes in there: