Button click

  1. Restrictions
  2. Questions and answers
Note. The goal is created automatically if the Automatic goals option is enabled in the tag settings.You can manage this goal just like other automatic goals.

Use this type of goal to find out how many times visitors click a button or another clickable element on the website.

In Yandex Metrica, you can create goals for specific buttons. Yandex Metrica recognizes clickable website elements by the presence of the following tags: a, button, div, and input.

To create a goal manually:
  1. In Yandex Metrica, go to the Goals page in the left menu.
  2. Click Add goal.
  3. In the Name field, enter a name for the goal to create.
  4. Select the Button click type of goal.
  5. In the field, specify the website page that contains the button. By default, the most popular URL on the tag is shown. Click Go and select a button.

  6. In Select an element mode, hover over the desired button, select it, and click Track clicks. To go to another page or open a pop-up window, select Interaction with the site mode.

  7. 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.
  8. Check whether the goal is working correctly.

Goal completion is registered when a user clicks the clickable element. To view goal statistics, use the Conversions report and add the goal to other Yandex Metrica reports.


  • This type of goal can't be used in Multi-step goals.
  • The service registers a user that completes the same goal on the same tag no more than once per second.
  • During a single user session, the service can register up to 400 completions of all the goals created for a tag.
  • If you edit a tag or goal, previously collected information doesn't change.
  • If you delete a goal, information collected for it, is no longer available in reports.

Questions and answers

Will the goal work without Session Replay?
If Session Replay is not enabled in the tag settings, the goal can work without it.
Will the goal for the previous version's code snippet work?

The goal may work for the previous version of the code snippet.

Will the goal work with the filter “Replace https with http”?

If in the tag settings on the tab Filters the operation Replace https with http is enabled, button selection is not available.

Does the goal work with redirects?
If the page where you want to select a button redirects to another one, then button selection is not available. To track clicks on a specific button, use the JavaScript event goal.

Select a question to find a solution.

Goals in Yandex Metrica work the same way for any source. Perhaps there aren't any users who have completed the goal from this source yet.

This might happen for the following reasons:
  • The goal condition in Yandex Metrica doesn't cover all the possibilities. For example, the goal is set as going to the order confirmation page, but the site also allows instant checkout without visiting this page.
  • The site user has a browser plugin that blocks the Yandex Metrica tag, so this user isn't counted.
  • The user has an antivirus system with strict privacy settings.
  • The user has a slow internet connection, so the Yandex Metrica tag didn't load on the target page.