Hi,
You can add it to your theme or in a new theme component HTML.
Usually, in a theme or component (Admin → Customize → Themes), you click on Edit CSS/HTML:
Then, you click on Head and you can insert the code there:
That’s it!