Marking numbers for insertion using XPaths
Olga Kalchenko avatar
Written by Olga Kalchenko
Updated over a week ago

XPath is a query language for an element on a website page. Using XPath, we specify the path to the number on the site, which we will replace to track it.

We configure the functionality in the “XPath” menu item by clicking on the “+Add XPath” button .

In the window that appears, first select the option of specifying the path to the desired element.

It could be:

  • Text - search for an element by text match

  • Class — search for an element by class name

  • Id — search for an element by the name of the element id

  • Manual mode - specifying the direct path to the element (it is recommended to use it if you know the XPath query language)

An example of a setting for replacing a class called “ringo-phone”:

  1. In “Xpath Name” we indicate its conventional name, for example, “ringo-phone”.

  2. Leave the “For regions only” field empty.

  3. In the “Mask” field we indicate what needs to be displayed on the site instead of the content of the replaced element. In this case, indicate hash marks instead of numbers in the element being replaced. That is, if you have a number on the website in the format +38 (091) 23-45-678, you should indicate +## (###) ##-##-### in the mask. After this, the number on the site will be replaced with a number from the pool (more on setting up pools later).

4. Choose the geo group that was created earlier.

5. Leave the remaining fields and checkboxes empty; they are needed for advanced configuration by our technical specialists.

Did this answer your question?