Revenue by goal
When a goal is completed, Yandex Metrica can count revenue for that goal. This helps you measure cost-efficiency for the goal. You can set the cost of the product or another value as revenue by goal.
You can set revenue:
- In Yandex Metrica, for any goal or step of a Multi-step goal (in the currency specified in the tag settings).
- In the site code, for JavaScript event goal conversions, offline conversions, calls, or events passed using the JavaScript API (in an ISO 4217 currency).
If you use both methods, the revenue passed when the goal is converted takes priority. Yandex Metrica saves the revenue when it registers goal conversion.
Yandex Metrica counts revenue for the conversions that occurred after you specified the revenue. If you edit the value, the revenue is counted for the goals converted after the edits.
To track revenue, add a goal or step of a Multi-step goal and the Revenue target metric to the report. To learn more, see How to create a report on a goal. The total revenue for a multi-step goal is not displayed.
Note. Revenue by goal is not used when setting up priority goals in Yandex Direct.
- Go to the Goals page in the left menu.
- Edit a previously created goal (click ) or add a new goal.
- In the Revenue field, specify the value.
How to specify revenue in Yandex Metrica for any goal
How to set revenue in any currency for the “JavaScript event” goal
Example of setting up revenue for a JavaScript event form submission goal:
<script type="text/javascript">
var goalParams = {
order_price: 1000.35,
currency: "RUB"
}
</script>
<form action="" method="get" onsubmit="ym(XXXXXX, 'reachGoal', 'TARGET_NAME', goalParams); return true;">
...
</form>