---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.1
alternate:
  - https://diplodoc.com/docs/en/project/analytics/ym.md
  - https://diplodoc.com/docs/ru/project/analytics/ym.md
  - href: en/project/analytics/ym.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
updatedAt: '2026-08-11T13:35:17.000Z'
---
> **Documentation Index:** Fetch the complete configuration index at https://diplodoc.com/docs/en/llms.txt

# Sending goals to Metrica

After [connecting Metrica](https://diplodoc.com/docs/en/settings.md#analytics-metrika) to the project, [goals](https://yandex.ru/support/metrica/ru/general/goals) for events in the documentation interface start being sent to the counter.

{% note info %}

To have goals saved in Metrica, you need to [add them to the counter following the instructions](https://yandex.ru/support/metrica/ru/general/goal-js-event).

{% endnote %}

## Supported goals

`DOCS_EDIT-IN-VCS_CLICK`
:   Clicking the "Edit" link button.

`DOCS_FOOTER-NEXT_CLICK`
:   Navigating to the next page via the "Next" link at the end of the article.

`DOCS_FOOTER-PREV_CLICK`
:   Navigating to the previous page via the "Previous" link at the end of the article.

`DOCS_HEADER-LOGO_CLICK`
:   Clicking the logo.

`DOCS_HEADER-SANDWICH-MENU_CLICK`
:   Expanding the table of contents menu in the mobile version.

`DOCS_HEADER-SETTINGS_CLICK`
:   Opening the "Settings" menu item.

`DOCS_LANG_CLICK`
:   Opening the language selection menu.

`DOCS_WIDESCREEN-MODE_CLICK`
:   Enabling/disabling fullscreen mode.

`DOCS_HIDE-PAGE-NAV_CLICK`
:   Enabling/disabling navigation for the current article.

`DOCS_FONTSIZE-MODE_CLICK`
:   Changing the text size.

`DOCS_READING-MODE_CLICK`
:   Switching to reading mode.

`DOCS_SEARCH_CLICK`
:   Clicking the search query input field.
