Tracking conversions by yclid
By default, Yandex Metrica attributes a conversion to the converted session.
Learn more
For example, a user clicked an ad and went to the website, but there was no conversion. The user then clicked through to the website from search results and performed a target action: a conversion occurred. Yandex Metrica will assign the conversion to traffic from search results.
You can tell the system to assign certain conversions to Yandex Direct. These may include conversions that Yandex Metrica has already attributed to a different source, or conversions made offline (for instance, a payment registered on the payment system side or an order confirmed by phone). Conversions manually linked to clicks from Yandex Direct allow for even more precise adjustment of display strategies of ads based on your business objectives.
To link conversions to Yandex Direct traffic, you need to collect yclid tags via a special JavaScript code and send them to Yandex Metrica in the CSV file along with the information about the conversions done. See the instructions below.
Use Recording offline conversions for linking. This means that the conversion data will be attributed to a session in Yandex Metrica if no more than 21 days have passed between the session with the relevant yclid
and the time the conversion file was processed. Hence, the earlier you pass information about the yclid
values and conversions, the more likely it is that conversions will be attributed to sessions.
You can view conversion data in any Yandex Metrica report. To do this, add a goal that you created for tracking conversions. When selecting the Last click attribution model, some sessions will not be displayed as the click-through from the ad might not be the last in the session history.
Here's how to use yclid
:
-
Set up yclid receipt via JavaScript on your website.
-
In the tag settings, go to Upload data and enable Recording offline conversions.
-
On the Goals page, create a JavaScript event goal in the left menu. For the goal ID, specify the event you want to track (for example, order confirmation — "order_confirmed"). You will need this ID when creating a CSV file.
If you want to analyze offline conversions separately from conversions on the website, enter a more specific description in Name (for instance, “Purchase in office”, “Offline goal”, or “Cash payment”). This will make it easier to find the goal in the list.
You can use a previously created goal if conversions for this goal are done both on the website and offline and you want to get general statistics. In this case, only send data with the
yclid
values for conversions that occur outside of your website. -
Send yclid values to Yandex Metrica in the CSV file. Information can also be sent using the Yandex Metrica API.
-
Analyze the conversion rate of your ad campaigns and use goals in setting up of ads in Yandex Direct.
Useful links |
Online training |
The ID of a click on a Yandex Direct ad assigned by Yandex Direct. It is passed in the ad’s URL. Used for tracking a website traffic source.