arrow_back_iosQuestions
help

How to connect Yandex.Metrica?

check_circle
In the order event processing code, add the Yandex.Metric data. You will get something like this:
window.bukzaCallbackFor[Widget Container ID] = function(payload){
    switch(payload.message.event){
        //other handlerss
        case 'ORDER_COMPLETED':
            yaCounter[ID Counter].reachGoal('ORDER_COMPLETED',
            {
                order_price: payload.message.data.total,
                currency: "RUB"
            });
            break;
    }
};
In this case, the standard code of the metric counter should already be added to the page with the widget. More information about sending data to the metric read here.
Didn't find the answer to your question?
Ask it to us on
mail_outlinesupport@bukza.com