zahid9i
zahid9i

Reputation: 596

Using Google site verification meta tag on Magento

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

Answers (3)

Vishal Thakur
Vishal Thakur

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).

enter image description here

Upvotes: 1

rogeriodasilvadotcom
rogeriodasilvadotcom

Reputation: 279

  • Log in to your Admin account
  • Navigate to System > Configuration > Under "General" section on left side > Design and under "HTML Head" paste the code in the input filed next to "Miscellaneous Scripts"

This is where to place the verification code for Google (Youtube, Webmaster, Adsense), e.g.

<-meta name="google-site-verification" content="xxxxxxxxxxxxxxxxxxxxxxxxxxxx" /->

Upvotes: 6

Marius
Marius

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

Related Questions