Why can I see meta name="google-site-verification" content="XXX" when inspecting the website code, but I can’t find it in the theme’s theme.liquid file? I need to change the content of XXX.
It doesn’t necessarily need to be hard typed in theme.liquid. Maybe it’s from a GTM script or an app. Maybe it’s in a custom schema file from the theme designers.
Hi @miao1 ,
If you see
<meta name="google-site-verification" content="XXX">
in your page source but it does NOT exist in theme.liquid, it means it was added outside the theme files.
On Shopify, this meta tag can come from 3 possible places:
1. Shopify Admin → Preferences → Google Analytics / Meta Pixel / Verification
Shopify allows adding verification codes directly from the admin panel.
Check here:
Online Store → Preferences → Meta tag verification
or
Settings → Domains → Domain verification
Sometimes the code shows here instead of inside theme.liquid.
2. An App Injecting the Tag
SEO apps, Google Sales Channel, marketing apps, or tracking apps automatically inject the verification meta tag.
Check your installed apps for:
- Google Sales Channel
- SEO Manager / Smart SEO
- Tag Manager apps
- Marketing automation apps
One of these may be adding it dynamically.
3. It’s Inserted Through theme.liquid partials
It may not be in theme.liquid, but in a file included inside it.
Check these files:
/snippets/head.liquid/layout/theme.liquid/snippets/seo-meta.liquid/snippets/custom-head.liquid
The code might be placed in one of those includes.
Hey @miao1,
If you cannot see the google site verification code in the theme.liquid file then it means that this code exist in another file.
Can you try to follow these steps.
Go to Shopify Admin >> Online Store >> Edit Code >> In the Left search bar, you have to search the term: google-site-verification
I show you visually below.
If you find any result from there then you have to click on that file and it will show you exactly where this code exists.
if you don’t find any result then it means that your code is placed in the other files, like in the app scripts or in the Admin side.
You’re seeing the verification tag in your site’s code because it was added somewhere outside the theme file. Most often it’s in Online Store Preferences, where Shopify lets you paste verification codes. It can also come from an SEO or marketing app that injects it automatically. Check Preferences first, then any apps that might add verification tags.
