Unable to paste google analytics con header.php [closed]

You can use this Plugin and it will automatically insert the code for you on every page.

Just download the plugin and add your code to the header box that the pugin provides.
Super easy to use and super lightweight.

Plugin: Insert Headers and Footers

https://pt.wordpress.org/plugins/insert-headers-and-footers/