Goals on Turbo pages created in Yandex.Webmaster

Goals for an informational site

To track the users' interaction with Turbo page elements, use a “JavaScript event” goal.

  1. Add the turbo:goal element to an RSS feed:
    ...
    <turbo:goal type="yandex" turbo-goal-id="goal-link" name="TARGET" id="12345" />
    <turbo:content>
       <![CDATA[
           ...
       ]]>
    </turbo:content>
    where
    • name is the goal ID.
    • id is the tag number.
    • turbo-goal-id is the ID to assign to the Turbo page content
  2. Add the ID to the content you want to track statistics for as the data-goals attribute value. You can specify multiple comma-separated values, i.e., you can link multiple goals to a single element on a Turbo page.
    <turbo:content>
        <![|||UNTRANSLATED_CONTENT_START|||CDATA[
            <p><a href="http://example.com/" data-goals="goal-link,goal-link2">Текст</a></p>
        ]]>
    </turbo:content>|||UNTRANSLATED_CONTENT_END|||

Data will start being transmitted to Yandex.Metrica after the robot checks the RSS feed and finds out about the changes.

The created goal can be used in most Yandex.Metrica reports. You can also track conversions by goal using the Conversions report.

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 code snippet. 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.

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.