If I add custom code to the source files, it will be overwritten with each update.
If, on the other hand, in "management -> pages" we add custom fields, which are printed immediately before the </head> tag, the addition of the google analitycs code remains.