How to add Google, Bing, Pinterest, Yandex and Baidu verification tags
Search engines ask you to prove that you own your store, usually with a meta tag in the head of your pages. The app prints that tag for you through its app embed, so you do not edit theme code. This article shows how to turn on the app embed and add codes for Google, Bing, Pinterest, Yandex and Baidu.
Before you start
- You need the verification code from each search engine. Each one gives you a meta tag with a
contentvalue. The code is that value. - The tags are printed by the app embed named SEO tags & 404 log (by Sol: SEO Optimizer). It must be on in your live theme. It works with any theme.
- The app never edits your theme files. If you uninstall the app, the app embed and its tags go away.
Turn on the app embed
- Go to On-page settings and open Search engine verification (the card has a Manage codes button).
- Check the status of the app embed on that page. If it is off, select Open theme editor. This opens your live theme in a new tab.
- In the theme editor, open App embeds, switch on SEO tags & 404 log and save.
- Come back to the app. The status updates by itself, or select Check again.
To use a theme that is not live, go to Online Store > Themes, select Customize on that theme, then open App embeds.
The embed has no settings in the theme editor. You add the codes in the app. You can turn the embed off by switching SEO tags & 404 log off in App embeds and saving. For more help see How to turn on the app embed.
Where to find each code
| Search engine | Meta tag name | Where to find the code |
|---|---|---|
| Google Search Console | google-site-verification |
Search Console > Settings > Ownership verification > HTML tag |
| Bing Webmaster Tools | msvalidate.01 |
Bing Webmaster Tools > Add site > HTML Meta Tag |
p:domain_verify |
Pinterest business settings > Claim > Websites | |
| Yandex Webmaster | yandex-verification |
Yandex Webmaster > Add site > Meta tag |
| Baidu Webmaster Tools | baidu-site-verification |
Baidu Ziyuan > Site verification > HTML tag |
Add the codes
- Open Search engine verification under On-page settings.
- In Verification codes, paste the code into the field for each search engine, for example Google Search Console. You can paste the code only, or the full meta tag. The app takes the
contentvalue. - Save. The toast says "Verification codes saved".
- When the app embed is on, a Tag live badge shows next to each saved code.
- Go back to the search engine and select its verify button.
A code must be 4 to 128 characters: letters, numbers and - _ = . : + /. If the code is not valid, you see "Paste the code from the meta tag, 4 to 128 letters, numbers or - _ = . : + / characters." If you paste a link, you see "This looks like a link, not a code. Paste only the content value, for example 4f1c2a9b8e7d6c5b." If the pasted tag has no content="...", the app asks you to paste only the content value.
To remove a tag, clear its field and save.
If your theme already prints the tag
If your theme has the same verification tag, the app shows a warning for that search engine, for example "Your theme already prints a Google verification tag" (or Bing, and so on for the others). The search engine accepts either, but two tags make it hard to know which one is live. Keep the one in the app and remove the theme's line, or leave that field in the app empty.
Check the status
The status of the app embed shows on Search engine verification and in the On-page settings list. If it says the app embed is off, the tags are not on your pages, even if codes are saved. The app reads the status from your live theme and keeps it for a few minutes, so select Check again to refresh it.
[!INFO] The same app embed also records links that hit a 404 on your store. It does this only on your store's 404 page.
Related articles
- How to turn on the app embed
- Why does the app embed show Off?
- What the app does with robots.txt
- How the 404 log works
← How image ALT text settings work What the app does with robots.txt →