Reputation: 596
I need Google site verification for my site. Google gives me a meta tag to add on my site's head tag.
Does Magento provide any configuration interface for that OR do I need to modify a file?
Upvotes: 2
Views: 13334
Reputation: 1696
For Magento 2.1 & 2.2:
1-> Go to your admin panel.
2-> Go to CONTENT > Configuration
.
3-> Press edit
for your current theme or global theme.
4-> Open the section HTML Head
.
5-> Paste in the Scripts and Style Sheets
section the meta tag code.
6-> Press the Save Configuration
button in the top right corner (see image below).
Upvotes: 1
Reputation: 279
This is where to place the verification code for Google (Youtube, Webmaster, Adsense), e.g.
<-meta name="google-site-verification" content="xxxxxxxxxxxxxxxxxxxxxxxxxxxx" /->
Upvotes: 6
Reputation: 15206
Add this piece of xml in one of your layout files:
<default>
<reference name="head">
<block type="core/text" name="google_verification" as="google_verification">
<action method="setText">
<text><![CDATA[CODE FROM GOOGLE HERE]]></text>
</action>
</block>
</reference>
</default>
Clear the cache and refresh.
Upvotes: 4