Setting up substitution if the number is shown as a link

If the phone number on your site is displayed as a link, you can set up substitution by following these steps:

  1. Wrap the a element in another replaceable element. For example:

    <div class="ya-phone"><a href="tel:+74951234567">+7 (495) 123-45-67</a></div>


    • +74951234567 is your phone number.
    • class is an attribute of the replaceable element.
    • ya-phone is the element name.
  2. Get a special number, as explained in Step 2. Connecting a Target Call number. When filling in substitution parameters, enter the a element in the Replacement text field like this:

    <a href="tel:+7{code}{phone_short}">{full_phone}</a>