I
I
IvanTomov2016-06-20 17:55:06
1C-Bitrix
IvanTomov, 2016-06-20 17:55:06

Request to Yandex Metrica ecommerce with parameters of a paid order via curl?

Good afternoon. There is an online store, you need to send a request to Yandex metrics with (exactly) paid goods. The difficulty is that the user who paid for the goods may not visit the site again, so the option with js is not suitable (the Yandex checkout does not have an auto-redirect).
On js, it is done like this https://yandex.ru/support/metrika/data/e-commerce.xml (the latest example)
I did not find requests for ecommerce in the api of the Yandex market about php.
Tell me, please, who knows.
Maybe I didn't formulate the question correctly. I don't know what to send in the request, the data structure, to which url. I did not find a word about this in the api (namely, about ecommerce). If you have an example of such a request, please post it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Paulus, 2016-06-20
@ppokrovsky

If I understand correctly, then the case "the user may not visit the site again" occurs when paying with a card, when after acquiring. In this case, I would do this:
in the browser, look at what goes where to Yandex.Metrica;
on a callback from acquiring, I would pull Metrica with a curl.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question