“Page view” goal

This type of goal lets you track:
  • Traffic to a specific page or multiple pages.
  • Traffic from an outbound link.
  • File downloads.
Tip. Users might complete a goal somewhere other than the site, like over the phone. To count these users, set up transmitting call tracker data to Yandex.Metrica. Then you can add calls to Yandex.Metrica reports and also use a special group of reports.

How to create a “Page view” goal

  1. In Yandex.Metrica, go to Settings and open the Goals tab.
  2. Click Add goal.
  3. In the Name field, enter a name for the goal to create.
  4. Select the Page view goal type.
  5. Specify the desired condition. You can add up to 10 conditions.
  6. Click Add goal. The created goal will appear in the list of goals.
  7. Click Save. Yandex.Metrica begins collecting statistics a few minutes after saving the settings.
  8. Check whether the goal is working correctly.


Conditions for tracking a goal

There are several types of conditions available when creating a goal. Conditions are combined with the OR operator, so the goal is considered completed if at least one of the set conditions is met.

Condition Description
url: matches Specify the full URL of the target page.
url: contains
Specify part of a URL. Use this option if there are multiple target pages and they can be combined with a single condition. Specify as much of the URL as possible so the goal is completed only on the desired pages.
Example
If the condition is /abc, the goal will be completed on the pages example.com/abc-1, example.com/abc/2, and example.com/abcd.
url: begins with...
Only the first part of the URL is specified. Use this condition if you want to track views in subdirectories.
Example
If the condition is set to https://example.com/abc/, the goal will be completed on the pages https://example.com/abc/1, https://example.com/abc/2, and https://example.com/abc/1/2/3.
url: regular expression Used for tracking URLs that match a custom pattern.

When handling the condition, symbols such as ?, #, &, and dots (.) are removed from the end of the URL. For example, for the URLs http://example.com/?, http://example.com/#, and http://example.com/?var=1&, the comparison will be made with http://example.com/, http://example.com/, http://example.com/?var=1, respectively. To add these symbols, except a dot, to the URL, use the url: regular expression condition.

If you want the goal to be completed for pageviews with URLs containing the plus sign, put %2B in the template in place of the + character.

Example

Restrictions

  • A maximum of 200 goals can be set for each tag.
  • 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.

Examples

Tracking file downloads
  1. Set the type of condition to “url: contains”.
  2. Enter the full or partial path to the file (or its name) on your site as the condition. For example, https://example.com/files/name.pdf or name.pdf. If you specify a name as the condition, make sure it doesn't overlap with other file or page names on the website.

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.