You should place it inside header so that means right BEFORE closing </head> tag in header.php
Jaska
Just make sure you are not editing the theme’s header.php file directly. Otherwise, you will lose your changes when the theme gets updated. You should either create a child theme and work off a copy of header.php, or use a plugin that will insert anything you want into the <head> section. I personally prefer using a plugin, so that if the header.php is one of the files that gets upgraded in the next version of the theme, I’ll be able to use the upgraded features of the file. I like the Header and Footer plugin for adding scripts like Google Analytics.
@apple.baker: Either make a child-theme before editing the theme, You can put the script in header.php or in the footer.php or Use Plugin.
Thanks