We have a similar script from the Internet.

<script src="http://yastatic.net/jquery/2.1.1/jquery.min.js"></script> <script type="text/javascript"> window.onload = function () { if(ymaps.geolocation.region == 'Москва и Московская область'){ jQuery(".region-phone").text('+7 (495) 000-00-00'); jQuery(".region-phone-href").attr('href', 'tel:+78000000000'); } else { jQuery(".region-phone").text('+7 (800) 000-00-00'); jQuery(".region-phone-href").attr('href', 'tel:+78000000000'); } } </script> <script src="http://api-maps.yandex.ru/2.0-stable/?load=package.standard&lang=ru-RU" type="text/javascript"></script> <a class="region-phone-href" href="#"><div class="region-phone"></div></a> 

If you replace the contact information in the organization of this form:

 <div itemscope itemtype="http://schema.org/Organization"> <span itemprop="name">Яндекс</span> Контакты: <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"> Адрес: <span itemprop="streetAddress">Льва Толстого, 16</span> <span itemprop="postalCode"> 119021</span> <span itemprop="addressLocality">Москва</span>, </div> Телефон:<span itemprop="telephone">+7 495 739–70–00</span>, Факс:<span itemprop="faxNumber">+7 495 739–70–70</span>, Электронная почта: <span itemprop="email">pr@yandex-team.ru</span> </div> 

Will this affect data indexing? And will it cause problems? Will the search engine see all the phones from the script?

    1 answer 1

    • You ask, “If you substitute the contact information in an organization card of this type: Will it affect the indexing of data? ” - no, it will not — you can set up any data you need.
    • You ask, “If you substitute the contact information in an organization card of this type: Will the search engine see all the phones from the script? ”, It will see, but I would suggest you the following markup for phones (the ability to call directly from the site) <a href=tel:+код-страны+номер itemprop=url><span itemprop=telephone>zzzzz</span></a>

    To check your markup, use this Google validator .

    • Thanks, about the validator and work with links I am aware of. It was important for me to know if the scripts reproduce when reading data. - Alexey Giryayev