Goals on Turbo sites

You can use Yandex Metrica goals to track user actions on Turbo sites created in Yandex Direct.

If you use an auto-generated tag to collect statistics for your Turbo site, goals will also be preset, so you don't need to configure them in Yandex Metrica.

Turbo site statistics

If you linked your own tag to a Turbo site (for example, to track clicks), make sure to configure your goals in Yandex Metrica so you can track user actions.

How to configure goals

You can set up Yandex Metrica goals for clickable elements of your Turbo site page:

  • Buttons, including buttons for submitting forms.
  • Addresses.
  • Phone numbers.

Step 1. Configure Turbo site page elements in Yandex Direct

To track:

  1. Go to the Turbo page editor in Yandex Direct.
  2. In the right-hand menu, select the section for which you want to set up a goal and click Settings.
  3. Find the Yandex Metrica goals field and enter the goal ID. For example, button-header.
  4. Set IDs for the elements you need.
  5. Save the changes.
  1. Go to the Turbo page editor in Yandex Direct.

  2. In the right-hand menu, select the section containing the element for which you want to set up a goal.

  3. Next to the element you need, click <sodipodi:namedview id="rnd-3415fc8d__namedview2803" pagecolor="#ffffff" bordercolor="#000000" borderopacity="0.25" inkscape:showpageshadow="2" inkscape:pageopacity="0.0" inkscape:pagecheckerboard="0" inkscape:deskcolor="#d1d1d1" showgrid="false" inkscape:zoom="25.732538" inkscape:cx="14.90331" inkscape:cy="8.5106257" inkscape:window-width="1920" inkscape:window-height="1017" inkscape:window-x="-8" inkscape:window-y="-8" inkscape:window-maximized="1" inkscape:current-layer="i-ua1"/>Edit.

  4. Find the Yandex Metrica goals field and enter the goal ID. For example, contact-header-phone.

  5. Set IDs for the elements you need.

  6. Save the changes.

Step 2. Set up a goal in Yandex Metrica

  1. Go to Yandex Metrica and open the settings for the tag you specified in the Turbo page editor in Yandex Direct.

  2. Go to the Goals tab and click Add goal.

  3. Choose JavaScript event.

  4. Enter any goal name in the Name field.

  5. 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.

  6. Do the same for all the other elements you wish to track.

Step 3. Launch your Turbo site page and check its goal

Make sure your Turbo site is ready for publication and post it. After you do that, check your goal.

  1. Go to the Turbo page editor in Yandex Direct.
  2. Click and select Preview links.
  3. Click the link to preview your page.
  4. 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.

How to create a report for a goal

Learn more

Chat with us

Write an email

If you were unable to independently check the tag, follow the recommendations below.

This might happen for the following reasons:

  • The tag is installed incorrectly. For example, the CMS modified the tag code. Reinstall the tag or contact the support service for your CMS.
  • Broken scripts are preventing the Yandex Metrica tag from working on the site. You can check this in the browser console.
The recommendations did not help

This means that information is being transmitted to Yandex Metrica. However, the data might not be shown in reports for any of the following reasons:

  • Data is sent to a tag with a different number.
  • The Filters tab in the tag settings has overly strict filters defined. Remove unneeded filters.
  • The Filters tab in the tag settings has the Don’t count my sessions filter enabled. This means that the tag doesn't register your own sessions. Try accessing the site with your browser in “incognito” mode.
The recommendations did not help