Goals on Turbo pages created in Yandex Direct
If you specified your own Yandex Metrica tag in the Turbo page editor in Yandex Direct, you can configure Yandex Metrica goals for clickable elements on Turbo pages:
- Buttons, including buttons for submitting forms.
- Addresses.
- Phone numbers.
Step 1. Configure Turbo page elements in Yandex Direct
To track:
- Go to the Turbo page editor in Yandex.Direct.
- In the right-hand menu, select the section for which you want to set up a goal and click Settings.
- Find the Yandex Metrica goals field and enter the goal ID. For example,
button-header
. - Set IDs for the elements you need.
- Save the changes.
-
Go to the Turbo page editor in Yandex.Direct.
-
In the right-hand menu, select the section containing the element for which you want to set up a goal.
-
Next to the element you need, click
→ Edit.
-
Find the Yandex Metrica goals field and enter the goal ID. For example,
contact-header-phone
. -
Set IDs for the elements you need.
-
Save the changes.
Step 2. Set up a goal in Yandex Metrica
-
Go to Yandex Metrica and open the settings for the tag you specified in the Turbo page editor in Yandex Direct.
-
Go to the Goals tab and click Add goal.
-
Choose JavaScript event.
-
Enter any goal name in the Name field.
-
Find the Goal ID field, enter the value you entered for the same element in the Turbo page editor (
tel-turbo
in this example), and click Add goal. The created goal will appear in the list of goals. Yandex.Metrica will start collecting statistics on it within a few minutes. -
Do the same for all the other elements you wish to track.
Step 3. Launch a Turbo page and check its goal
Make sure your Turbo page is ready for publication and post it. After you do that, check your goal.
- Go to the Turbo page editor in Yandex.Direct.
- Click
and select Preview links.
- Click the link to preview your page.
- Add the parameter
_ym_debug=2
to the address and follow the instructions.
To view goal statistics, use the Conversions report. You can also add goals to most reports in Yandex Metrica. For more information, see How to create a report on a goal.
Useful links |
Online training |