Tuesday, November 27, 2018

Prestashop 1.7.4.2 - How to add bing, google, alexa meta authentication key

Search engine optimization is a very important part of any website and verifying them using the webmaster tools is one of them. However, not many people know how to add the meta name authentication on the PrestaShop 1.7.4.2 classic template. Some people recommend adding it to the header.tpl but when I actually tested that is the correct place where to enter the authentication key. Follow this tutorial how it can be done easily. Assuming that we are going to add bing meta authentication key

1. Use FileZilla FTP login to the Prestashop Server directory files

2. Go to this directory /themes/classic/templates/_partials

3. Download and edit the head.tpl file using Notepad++

4. Look for the code as below and enter the Bing webmaster tools authentication key as highlighted in red.




{block name='head_seo'}
  <title>{block name='head_seo_title'}{$page.meta.title}{/block}</title>
  <meta name="msvalidate.01" content="F276D79EF8C2C69F5F83C0C760516F41" />
  <meta name="description" content="{block name='head_seo_description'}{$page.meta.description}{/block}">
  <meta name="keywords" content="{block name='head_seo_keywords'}{$page.meta.keywords}{/block}">
  {if $page.meta.robots !== 'index'}
    <meta name="robots" content="{$page.meta.robots}">
  {/if}
  {if $page.canonical}
    <link rel="canonical" href="{$page.canonical}">
  {/if}
  {block name='head_hreflang'}
      {foreach from=$urls.alternative_langs item=pageUrl key=code}
            <link rel="alternate" href="{$pageUrl}" hreflang="{$code}">
      {/foreach}
  {/block}
{/block}

5. Once it is done save the file and re-upload to the same directory to replace the old one.

6. After that browse to your Prestashop store

7. On the store right click the mouse and click "View page source" or "View Source Code"

8. Now search for the authentication key in this example <meta name="msvalidate.01" content="F276D79EF8C2C69F5F83C0C760516F41" /> you will see it is within the see image below

9. On the Bing authentication page click Verify and it should be successful. The same authentication meta tag verification can be done for Google, Alexa, Yandex webmaster tools

prestashop bing google alexa authentication key

No comments:

Post a Comment