Options Issue with placement of Google Site Verification meta tag

Topic summary

A user is attempting to add a Google site verification meta tag to their Shopify theme but receives errors indicating incorrect placement. Screenshots show the tag being added near the opening <head> section of theme.liquid.

Initial Problem:

  • Meta tag placement triggers location warnings despite appearing in the correct position
  • The code contains syntax errors beyond just placement

Attempted Solutions:

  • One responder identified an extra <head> tag at the end of the Google verification code that needed removal
  • After removing it, the error persisted
  • Another user suggests placing the tag immediately after the opening <head> tag (around line 4)

Current Status:

  • The issue remains unresolved
  • A responder indicates multiple code errors exist in the theme.liquid file requiring line-by-line review
  • Confusion exists around Google’s placement instructions (“before first <body> section” vs. immediately after <head>)
  • Professional theme review recommended to identify all errors
Summarized with AI on November 3. AI used: claude-sonnet-4-5-20250929.

Hi can someone help please.

I am trying to add the meta tag: to the beginning of the code. however I keep getting alerted that its in the wrong location.

Thanks

Maneka

@manekakknowle

You placed it at the right location however, there is a code added. Just remove the at the end of your Google code

Thank you for your message. Unfortunately it is still showing the same.

see below

Hi would you happen to have a solution here? would be really helpful thank you!

You have multiple errors more than I expected. You should have someone take a look inside your theme.liquid to check line by line

Hello Manekakknowle,

I’ve found success adding my meta tag to right below the opening “head” section so in my case line 4. However if you look at the “Verify Ownership” popup where you copy the meta tag, it states “it should go in the section, before the first section” which would a lot further down into the code. Very confusing.